AMIGAOS: Fix miniGL link when building with plugins
On AmigaOS miniGL is a static library and linking against it in plugins prevents to have a shared context. By linking only in main executable, this forces plugins to use the only context available in scummvm binary.
This commit is contained in:
parent
66cf874a6a
commit
034ce1678e
1 changed files with 13 additions and 0 deletions
13
configure
vendored
13
configure
vendored
|
@ -5468,6 +5468,19 @@ define_in_config_if_yes "$_opengl_game_classic" "USE_OPENGL_GAME"
|
|||
define_in_config_if_yes "$_opengl_game_shaders" "USE_OPENGL_SHADERS"
|
||||
define_in_config_if_yes "$_opengl_game_es2" "USE_GLES2"
|
||||
|
||||
if test "$_dynamic_modules" = yes ; then
|
||||
case $_host_os in
|
||||
amigaos*)
|
||||
# miniGL on AmigaOS is a static library so don't link with it in plugins
|
||||
# instead link against it and include all symbols
|
||||
append_var LIBS "-Wl,-whole-archive $LIBS_3D -Wl,-no-whole-archive"
|
||||
LIBS_3D=
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# If we have OpenGL libraries, then add them to plugins
|
||||
# so they could link
|
||||
if test -n "$LIBS_3D" ; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue