aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2008-04-14 11:43:01 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2008-04-14 11:43:01 +0000
commitf32a691b364e29b2169859d7fc962d799e06e61c (patch)
treed57b3052165057896e5e492d16962b42ae086a11
parent87710152a4e7a277a2e9ed546568adac9025690a (diff)
added option for disabling "-export_dynamic" and
disabled it by default on w32. let's see what happens... svn path=/trunk/externals/zexy/; revision=9698
-rw-r--r--src/configure.ac29
1 files changed, 20 insertions, 9 deletions
diff --git a/src/configure.ac b/src/configure.ac
index 28d5d97..eef1db3 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -37,8 +37,9 @@ AC_ARG_WITH(version, [ --with-version=<ver> enforce a certain zexy-version
AC_ARG_WITH(extension,[ --with-extension=<ext> enforce a certain extension for the dynamic library (e.g. dll)])
AC_ARG_WITH(pdpath, [ --with-pd=</path/to/pd> where to look for pd-headers and and -libs])
AC_ARG_ENABLE(PIC, [ --disable-PIC disable compilation with PIC-flag])
-AC_ARG_ENABLE(lpt, [ --enable-lpt enable parallelport-support])
+AC_ARG_ENABLE(PIC, [ --disable-exportdynamic disable linkage with the export_dynamic-flag])
AC_ARG_ENABLE(icc, [ --enable-icc enable ICC-support])
+AC_ARG_ENABLE(lpt, [ --enable-lpt enable parallelport-support])
AC_ARG_ENABLE(library,[ --disable-library split the library into single externals])
if test "x" = "x${enable_PIC}" ; then
@@ -58,6 +59,17 @@ dnl LATER: find a more generic way to generate the .._LIBRARY define
BUILDLIBRARY="-DZEXY_LIBRARY"
fi
+if test `uname | sed -e 's/^MINGW.*/NT/'` = NT ;
+then
+ LD=${CC}
+# LDFLAGS="-shared pd.dll"
+ EXT=dll
+ if test "x" = "x${enable_exportdynamic}" ; then
+ enable_exportdynamic="no"
+ fi
+fi
+
+
if test "x$with_pd" != "x"; then
if test -d "${with_pd}/src"; then
@@ -275,7 +287,13 @@ dnl
dnl OK, checks which machines are here now
dnl this needs some rethinking when cross-compiling (?)
dnl
-AC_CHECK_LDFLAGS([-export_dynamic -shared])
+dnl AC_CHECK_LDFLAGS([-export_dynamic -shared])
+
+if test "x$enable_exportdynamic" != "xno"; then
+ AC_CHECK_LDFLAGS([-export_dynamic])
+fi
+
+AC_CHECK_LDFLAGS([-shared])
if test `uname -s` = Linux;
then
@@ -316,13 +334,6 @@ fi
AC_CHECK_LDFLAGS([-bundle -undefined suppress -flat_namespace])
# )
-if test `uname | sed -e 's/^MINGW.*/NT/'` = NT ;
-then
- LD=${CC}
-# LDFLAGS="-shared pd.dll"
- EXT=dll
-fi
-
AC_CHECK_LDFLAGS([-shared pd.dll])
if test `uname -s` = IRIX64;