zlib-1.3.1-use-LDFLAGS-in-configure_no_gcc.patch (3079B)
- --- zlib-1.3.1/configure.old 2024-04-30 11:16:05.383361503 +0200
- +++ zlib-1.3.1/configure 2024-04-30 11:16:13.685327393 +0200
- @@ -299,25 +299,25 @@
- esac ;;
- IRIX*) SFLAGS=${CFLAGS-"-ansi -O2 -rpath ."}
- CFLAGS=${CFLAGS-"-ansi -O2"}
- - LDSHARED=${LDSHARED-"cc -shared -Wl,-soname,libz.so.1"} ;;
- + LDSHARED=${LDSHARED-"$CC -shared -Wl,-soname,libz.so.1"} ;;
- OSF1\ V4*) SFLAGS=${CFLAGS-"-O -std1"}
- CFLAGS=${CFLAGS-"-O -std1"}
- LDFLAGS="${LDFLAGS} -Wl,-rpath,."
- - LDSHARED=${LDSHARED-"cc -shared -Wl,-soname,libz.so -Wl,-msym -Wl,-rpath,$(libdir) -Wl,-set_version,${VER}:1.0"} ;;
- + LDSHARED=${LDSHARED-"$CC -shared -Wl,-soname,libz.so -Wl,-msym -Wl,-rpath,$(libdir) -Wl,-set_version,${VER}:1.0"} ;;
- OSF1*) SFLAGS=${CFLAGS-"-O -std1"}
- CFLAGS=${CFLAGS-"-O -std1"}
- - LDSHARED=${LDSHARED-"cc -shared -Wl,-soname,libz.so.1"} ;;
- + LDSHARED=${LDSHARED-"$CC -shared -Wl,-soname,libz.so.1"} ;;
- QNX*) SFLAGS=${CFLAGS-"-4 -O"}
- CFLAGS=${CFLAGS-"-4 -O"}
- - LDSHARED=${LDSHARED-"cc"}
- + LDSHARED=${LDSHARED-"$CC"}
- RANLIB=${RANLIB-"true"}
- AR="cc"
- ARFLAGS="-A" ;;
- SCO_SV\ 3.2*) SFLAGS=${CFLAGS-"-O3 -dy -KPIC "}
- CFLAGS=${CFLAGS-"-O3"}
- - LDSHARED=${LDSHARED-"cc -dy -KPIC -G"} ;;
- + LDSHARED=${LDSHARED-"$CC -dy -KPIC -G"} ;;
- SunOS\ 5* | solaris*)
- - LDSHARED=${LDSHARED-"cc -G -h libz$shared_ext.$VER1"}
- + LDSHARED=${LDSHARED-"$CC -G -h libz$shared_ext.$VER1"}
- SFLAGS=${CFLAGS-"-fast -KPIC"}
- CFLAGS=${CFLAGS-"-fast"}
- if test $build64 -eq 1; then
- @@ -347,19 +347,19 @@
- LDSHARED=${LDSHARED-"ld"} ;;
- SunStudio\ 9*) SFLAGS=${CFLAGS-"-fast -xcode=pic32 -xtarget=ultra3 -xarch=v9b"}
- CFLAGS=${CFLAGS-"-fast -xtarget=ultra3 -xarch=v9b"}
- - LDSHARED=${LDSHARED-"cc -xarch=v9b"} ;;
- + LDSHARED=${LDSHARED-"$CC -xarch=v9b"} ;;
- UNIX_System_V\ 4.2.0)
- SFLAGS=${CFLAGS-"-KPIC -O"}
- CFLAGS=${CFLAGS-"-O"}
- - LDSHARED=${LDSHARED-"cc -G"} ;;
- + LDSHARED=${LDSHARED-"$CC -G"} ;;
- UNIX_SV\ 4.2MP)
- SFLAGS=${CFLAGS-"-Kconform_pic -O"}
- CFLAGS=${CFLAGS-"-O"}
- - LDSHARED=${LDSHARED-"cc -G"} ;;
- + LDSHARED=${LDSHARED-"$CC -G"} ;;
- OpenUNIX\ 5)
- SFLAGS=${CFLAGS-"-KPIC -O"}
- CFLAGS=${CFLAGS-"-O"}
- - LDSHARED=${LDSHARED-"cc -G"} ;;
- + LDSHARED=${LDSHARED-"$CC -G"} ;;
- AIX*) # Courtesy of dbakker@arrayasolutions.com
- SFLAGS=${CFLAGS-"-O -qmaxmem=8192"}
- CFLAGS=${CFLAGS-"-O -qmaxmem=8192"}
- @@ -367,7 +367,7 @@
- # send working options for other systems to zlib@gzip.org
- *) SFLAGS=${CFLAGS-"-O"}
- CFLAGS=${CFLAGS-"-O"}
- - LDSHARED=${LDSHARED-"cc -shared"} ;;
- + LDSHARED=${LDSHARED-"$CC -shared"} ;;
- esac
- fi