aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMax Horn2011-05-05 14:21:17 +0200
committerMax Horn2011-05-25 13:21:53 +0200
commit6639eacb3ae7189bd18e4267d0115caa0a05edb4 (patch)
treed062b49e359af22a4f958b766ce68cfd0ba371e8 /configure
parentd935c53cdf00a54d95714139046abc35bf5c2c6a (diff)
downloadscummvm-rg350-6639eacb3ae7189bd18e4267d0115caa0a05edb4.tar.gz
scummvm-rg350-6639eacb3ae7189bd18e4267d0115caa0a05edb4.tar.bz2
scummvm-rg350-6639eacb3ae7189bd18e4267d0115caa0a05edb4.zip
BUILD: Move some Android 'hack' back to near end of configure
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure45
1 files changed, 27 insertions, 18 deletions
diff --git a/configure b/configure
index 2bf6f99ba3..828e990004 100755
--- a/configure
+++ b/configure
@@ -2093,24 +2093,6 @@ case $_backend in
CXXFLAGS="$CXXFLAGS -Wa,--noexecstack"
LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
- static_libs=''
- system_libs=''
- for lib in $LIBS; do
- case $lib in
- -lz|-lm)
- system_libs="$system_libs $lib"
- ;;
- *)
- static_libs="$static_libs $lib"
- ;;
- esac
- done
-
- # -lgcc is carefully placed here - we want to catch
- # all toolchain symbols in *our* libraries rather
- # than pick up anything unhygenic from the Android libs.
- LIBS="-Wl,-Bstatic $static_libs"
- LIBS="$LIBS -Wl,-Bdynamic -lgcc $system_libs -llog -lGLESv1_CM"
DEFINES="$DEFINES -DREDUCE_MEMORY_USAGE"
;;
dc)
@@ -3153,6 +3135,33 @@ else
fi
#
+# Some last-minute backend specific stuff, executed
+# after all of CXXFLAGS, LDFLAGS, LIBS etc. have been setup
+#
+case $_backend in
+ android)
+ static_libs=''
+ system_libs=''
+ for lib in $LIBS; do
+ case $lib in
+ -lz|-lm)
+ system_libs="$system_libs $lib"
+ ;;
+ *)
+ static_libs="$static_libs $lib"
+ ;;
+ esac
+ done
+
+ # -lgcc is carefully placed here - we want to catch
+ # all toolchain symbols in *our* libraries rather
+ # than pick up anything unhygenic from the Android libs.
+ LIBS="-Wl,-Bstatic $static_libs -Wl,-Bdynamic -lgcc $system_libs -llog -lGLESv1_CM"
+ ;;
+esac
+
+
+#
# Engine selection
#
_engines_built_static=""