CONFIGURE: Allow OpenDingux to use dynamic modules

-mno-shared prevents modules from being usable. Don't add it if modules
are allowed.
This commit is contained in:
Vladimir Serbinenko 2022-12-31 05:40:32 +01:00
parent 3701325b0e
commit 2149d3814b

10
configure vendored
View file

@ -3550,10 +3550,14 @@ if test -n "$_host"; then
opendingux-*) opendingux-*)
_sysroot=`$CXX --print-sysroot` _sysroot=`$CXX --print-sysroot`
_sdlpath=$_sysroot/usr/bin _sdlpath=$_sysroot/usr/bin
append_var DEFINES "-DDINGUX -DOPENDINGUX -DREDUCE_MEMORY_USAGE" append_var DEFINES "-DDINGUX -DOPENDINGUX -DREDUCE_MEMORY_USAGE -DUNCACHED_PLUGINS"
append_var CXXFLAGS "-ffast-math -fdata-sections -ffunction-sections -mplt -mno-shared" append_var CXXFLAGS "-ffast-math -fdata-sections -ffunction-sections -mplt"
append_var LDFLAGS "-ffast-math -fdata-sections -ffunction-sections -mplt -mno-shared" append_var LDFLAGS "-ffast-math -fdata-sections -ffunction-sections -mplt"
append_var LDFLAGS "-O3 -Wl,--as-needed,--gc-sections" append_var LDFLAGS "-O3 -Wl,--as-needed,--gc-sections"
if [ x"$_dynamic_modules" != xyes ]; then
append_var CXXFLAGS "-mno-shared"
append_var LDFLAGS "-mno-shared"
fi
_vkeybd=yes _vkeybd=yes
_alsa=no _alsa=no
_vorbis=no _vorbis=no