[PATCH] configure: also use LDFLAGS for DLL builds

Marcus Meissner marcus at jet.franken.de
Sat Oct 10 03:20:21 CDT 2009


Hi,

While one usually does not pass in LDFLAGS to dll building, one
just might.

(Currently using this to pass in the -flto flags.)

Ciao, Marcus
---
 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 813b198..d0e9b84 100644
--- a/configure.ac
+++ b/configure.ac
@@ -680,7 +680,7 @@ case $host_os in
     if test "$ac_cv_c_dll_gnuelf" = "yes"
     then
       LDSHARED="\$(CC) -shared"
-      LDDLLFLAGS="-shared -Wl,-Bsymbolic"
+      LDDLLFLAGS="$LDFLAGS -shared -Wl,-Bsymbolic"
       WINE_TRY_CFLAGS([-fPIC -shared -Wl,-soname,confest.so.1],
                       [LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"],
                       [WINE_TRY_CFLAGS([-fPIC -shared -Wl,-h,confest.so.1],
-- 
1.5.6



More information about the wine-patches mailing list