[PATCH] RESUBMIT: configure: also use LDFLAGS for DLL builds

Marcus Meissner marcus at jet.franken.de
Tue Oct 20 14:00:21 CDT 2009


While one usually does not pass in LDFLAGS to dll building, one
probably should be able to.

(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 5210c35..18d19ab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -680,7 +680,7 @@ case $host_os in
     if test "$ac_cv_c_dll_gnuelf" = "yes"
       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],

More information about the wine-patches mailing list