aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;