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