]> granicus.if.org Git - zziplib/commitdiff
prefix ${wl} on LDFLAGS
authorGuido Draheim <guidod@gmx.de>
Wed, 27 Apr 2011 23:20:21 +0000 (23:20 +0000)
committerGuido Draheim <guidod@gmx.de>
Wed, 27 Apr 2011 23:20:21 +0000 (23:20 +0000)
configure
configure.ac

index 55f51dee81cf3cd26ef3bd0777a88a08195f98b2..c280ca7e84c0ac74dee814066b906c5b3bb08fe4 100755 (executable)
--- a/configure
+++ b/configure
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking link options" >&5
 $as_echo_n "checking link options... " >&6; }
 ZZIPLIB_LDFLAGS=""
-test ".$can_build_shared" != ".no" && ZZIPLIB_LDFLAGS="--export-dynamic"
+test ".$can_build_shared" != ".no" && ZZIPLIB_LDFLAGS="${wl}--export-dynamic"
 RESOLVES=" # "
 case "$host_os" in mingw*)
-    ZZIPLIB_LDFLAGS="-no-undefined -export-all-symbols -mconsole"
+    ZZIPLIB_LDFLAGS="${wl}-no-undefined ${wl}-export-all-symbols ${wl}-mconsole"
     RESOLVES=' '
 ;; esac
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZZIPLIB_LDFLAGS $RESOLVES" >&5
index 751575336a89c159e0be26fb7d172d837a2da596..3b50d78c1632230bcef7032a3ab48c75237cb0e4 100644 (file)
@@ -292,10 +292,10 @@ AC_SUBST(ZIPTESTS)
 # ---------------------------------------------------------------
 AC_MSG_CHECKING([link options])
 ZZIPLIB_LDFLAGS=""
-test ".$can_build_shared" != ".no" && ZZIPLIB_LDFLAGS="--export-dynamic"
+test ".$can_build_shared" != ".no" && ZZIPLIB_LDFLAGS="${wl}--export-dynamic"
 RESOLVES=" # "
 case "$host_os" in mingw*)
-    ZZIPLIB_LDFLAGS="-no-undefined -export-all-symbols -mconsole"
+    ZZIPLIB_LDFLAGS="${wl}-no-undefined ${wl}-export-all-symbols ${wl}-mconsole"
     RESOLVES=' '
 ;; esac
 AC_MSG_RESULT([$ZZIPLIB_LDFLAGS $RESOLVES])