You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-libs/zlib/files/zlib-1.3.1-Revert-Turn-off-...

18 lines
685 B

https://bugs.gentoo.org/879883
https://github.com/madler/zlib/issues/751
This breaks building on sparc with older binutils.
--- a/configure
+++ b/configure
@@ -234,10 +234,6 @@ if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then
fi
case "$uname" in
Linux* | linux* | *-linux* | GNU | GNU/* | solaris*)
- case "$mname" in
- *sparc*)
- LDFLAGS="${LDFLAGS} -Wl,--no-warn-rwx-segments" ;;
- esac
LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,${SRCDIR}zlib.map"} ;;
*BSD | *bsd* | DragonFly)
LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,${SRCDIR}zlib.map"}