openssl-1.0.0a-ldflags.patch (899B)
1 http://bugs.gentoo.org/327421 2 3 --- a/Makefile.org 4 +++ b/Makefile.org 5 @@ -189,6 +189,7 @@ 6 MAKEDEPEND='$$$${TOP}/util/domd $$$${TOP} -MD $(MAKEDEPPROG)' \ 7 DEPFLAG='-DOPENSSL_NO_DEPRECATED $(DEPFLAG)' \ 8 MAKEDEPPROG='$(MAKEDEPPROG)' \ 9 + LDFLAGS='${LDFLAGS}' \ 10 SHARED_LDFLAGS='$(SHARED_LDFLAGS)' \ 11 KRB5_INCLUDES='$(KRB5_INCLUDES)' LIBKRB5='$(LIBKRB5)' \ 12 ZLIB_INCLUDE='$(ZLIB_INCLUDE)' LIBZLIB='$(LIBZLIB)' \ 13 --- a/Makefile.shared 14 +++ b/Makefile.shared 15 @@ -153,7 +153,7 @@ 16 NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \ 17 SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared -Wl,-Bsymbolic -Wl,-soname=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX" 18 19 -DO_GNU_APP=LDFLAGS="$(CFLAGS) -Wl,-rpath,$(LIBRPATH)" 20 +DO_GNU_APP=LDFLAGS="$(LDFLAGS) $(CFLAGS)" 21 22 #This is rather special. It's a special target with which one can link 23 #applications without bothering with any features that have anything to