zlib/zlib-1.2.3-cflags.patch
2006-07-19 08:34:35 +00:00

21 lines
1.0 KiB
Diff

--- zlib-1.2.3/configure.cflags 2005-07-11 22:11:57.000000000 +0200
+++ zlib-1.2.3/configure 2006-07-19 09:47:58.000000000 +0200
@@ -76,7 +76,7 @@
SFLAGS=${CFLAGS-"-fPIC -O3"}
CFLAGS="$cflags"
case `(uname -s || echo unknown) 2>/dev/null` in
- Linux | linux | GNU | GNU/*) LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1"};;
+ Linux | linux | GNU | GNU/*) LDSHARED=${LDSHARED-"$cc $CFLAGS -shared -Wl,-soname,libz.so.1"};;
CYGWIN* | Cygwin* | cygwin* | OS/2* )
EXE='.exe';;
QNX*) # This is for QNX6. I suppose that the QNX rule below is for QNX2,QNX4
@@ -97,7 +97,7 @@
SHAREDLIBV=libz.$VER$shared_ext
SHAREDLIBM=libz.$VER1$shared_ext
LDSHARED=${LDSHARED-"$cc -dynamiclib -install_name $libdir/$SHAREDLIBM -compatibility_version $VER1 -current_version $VER"};;
- *) LDSHARED=${LDSHARED-"$cc -shared"};;
+ *) LDSHARED=${LDSHARED-"$cc $CFLAGS -shared"};;
esac
else
# find system name and corresponding cc options