diff --git a/source/Makefile.in b/source/Makefile.in index 77af73f5b89..c81fdd4a832 100644 --- a/source/Makefile.in +++ b/source/Makefile.in @@ -18,8 +18,8 @@ CFLAGS=@CFLAGS@ CPPFLAGS=@CPPFLAGS@ EXEEXT=@EXEEXT@ LDFLAGS=@LDFLAGS@ -LDSHFLAGS=@LDSHFLAGS@ @LDFLAGS@ @CFLAGS@ -WINBIND_NSS_LDSHFLAGS=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@ @CFLAGS@ +LDSHFLAGS=@LDSHFLAGS@ @LDFLAGS@ +WINBIND_NSS_LDSHFLAGS=@WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@ AWK=@AWK@ DYNEXP=@DYNEXP@ PYTHON=@PYTHON@ diff --git a/source/configure.in b/source/configure.in index 93cbb0a871b..533757aab83 100644 --- a/source/configure.in +++ b/source/configure.in @@ -910,7 +910,7 @@ BLDSHARED="false" HOST_OS="$host_os" LDSHFLAGS="-shared" SONAMEFLAG="#" -SHLD="\${CC}" +SHLD="\${CC} \${CFLAGS}" PICFLAG="" PICSUFFIX="po" POBAD_CC="#"