From f32a691b364e29b2169859d7fc962d799e06e61c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 14 Apr 2008 11:43:01 +0000 Subject: 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 --- src/configure.ac | 29 ++++++++++++++++++++--------- 1 file 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= enforce a certain zexy-version AC_ARG_WITH(extension,[ --with-extension= enforce a certain extension for the dynamic library (e.g. dll)]) AC_ARG_WITH(pdpath, [ --with-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; -- cgit v1.2.1