autoreconf-ed mingw project gets -z via -specs=/usr/lib/rpm/redhat/redhat-hardened-ld via libtool

Sandro Mani manisandro at gmail.com
Tue Apr 21 22:17:00 UTC 2015


Hi,

In mingw-libmng I do a autoreconf -if before %mingw_configure (to 
regenerate the Makefiles with -no-undefined), but then the build fails 
because of

/usr/lib/gcc/i686-w64-mingw32/5.0.0/../../../../i686-w64-mingw32/bin/ld: 
unrecognized option '-z'
/usr/lib/gcc/i686-w64-mingw32/5.0.0/../../../../i686-w64-mingw32/bin/ld: 
use the --help option for usage information

I traced the source of the issue to the libtool script copied by 
autoreconf which now includes

compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"

which is responsible for adding -z. I am unsure however how to properly 
fix the issue, short of sed-ing out the 
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld from the libtool script...

Any ideas?

Thanks,
Sandro



More information about the mingw mailing list