diff options
author | Alexander Kyte <alexmkyte@gmail.com> | 2016-07-15 00:58:36 +0300 |
---|---|---|
committer | Alexander Kyte <alexmkyte@gmail.com> | 2016-07-18 22:03:47 +0300 |
commit | fb9a0777f2c40c83623b6a13b48a5d92991afca9 (patch) | |
tree | 0ea09c2336d7507ca7e9880b310537edc7b4efad /configure.ac | |
parent | be12fd0bf54155a3e9d4507eccabc05f7c807797 (diff) |
[mobile_static] Move PLATFORM_AOT_SUFFIX into configure.ac
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 81d0b7e275d..35340782ccb 100644 --- a/configure.ac +++ b/configure.ac @@ -353,6 +353,18 @@ AM_CONDITIONAL(PLATFORM_DARWIN, test x$host_darwin = xyes) AM_CONDITIONAL(PLATFORM_SIGPOSIX, test x$use_sigposix = xyes) AM_CONDITIONAL(PLATFORM_ANDROID, test x$platform_android = xyes) +if test -z "$PLATFORM_DARWIN_TRUE"; then : +PLATFORM_AOT_SUFFIX=.dylib +fi + +if test -z "$PLATFORM_LINUX_TRUE"; then : +PLATFORM_AOT_SUFFIX=.so +fi + +AC_SUBST(PLATFORM_AOT_SUFFIX) + +## PLATFORM_AOT_SUFFIX not so simple for windows :-) + AC_CHECK_TOOL(CC, gcc, gcc) AC_PROG_CC AC_CHECK_TOOL(CXX, g++, g++) @@ -4216,6 +4228,10 @@ fi echo "PLATFORM = darwin" >> $mcs_topdir/build/config.make fi + if test "x$PLATFORM_AOT_SUFFIX" != "x"; then + echo "PLATFORM_AOT_SUFFIX = $PLATFORM_AOT_SUFFIX" >> $mcs_topdir/build/config.make + fi + if test x$AOT_SUPPORTED = xyes -a x$enable_system_aot = xdefault; then enable_system_aot=yes fi |