aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorCameron Cawley2019-11-30 14:29:44 +0000
committerDavid Turner2019-11-30 14:53:48 +0000
commit25f6c7882504a03b50ed755d14947685f58d8691 (patch)
tree91ed3f0ebf1c7f61839c0ae18dde3deae86fc90b /configure
parent6aaec02c57cd04906242d2014ba9242422bb2258 (diff)
downloadscummvm-rg350-25f6c7882504a03b50ed755d14947685f58d8691.tar.gz
scummvm-rg350-25f6c7882504a03b50ed755d14947685f58d8691.tar.bz2
scummvm-rg350-25f6c7882504a03b50ed755d14947685f58d8691.zip
3DS: Move -Wl,--gc-sections to avoid it interfering with the library checks
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 7 insertions, 5 deletions
diff --git a/configure b/configure
index a61d2295b5..141ad8880c 100755
--- a/configure
+++ b/configure
@@ -2552,11 +2552,6 @@ case $_host_os in
append_var CXXFLAGS "-fomit-frame-pointer"
append_var CXXFLAGS "-I$DEVKITPRO/libctru/include"
append_var CXXFLAGS "-I$DEVKITPRO/portlibs/3ds/include"
- if test "$_dynamic_modules" = no ; then
- append_var LDFLAGS "-Wl,--gc-sections"
- else
- append_var LDFLAGS "-Wl,--no-gc-sections"
- fi
append_var LDFLAGS "-L$DEVKITPRO/libctru/lib"
append_var LDFLAGS "-L$DEVKITPRO/portlibs/3ds/lib"
append_var LIBS "-lcitro3d -lctru"
@@ -5687,6 +5682,13 @@ case $_backend in
if test "$_tremor" = yes -o "$_flac" = yes; then
append_var LIBS "-logg"
fi
+
+ # Moved -Wl,--gc-sections here to avoid it interfering with the library checks
+ if test "$_dynamic_modules" = no ; then
+ append_var LDFLAGS "-Wl,--gc-sections"
+ else
+ append_var LDFLAGS "-Wl,--no-gc-sections"
+ fi
;;
android)
# ssp at this point so the cxxtests link