1 --- zlib-1.2.1/configure
2 +++ zlib-1.2.1/configure
5 if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then
7 - SFLAGS=${CFLAGS-"-fPIC -O3"}
8 + #SFLAGS=${CFLAGS-"-fPIC -O3"}
9 + # the above is horribly wrong on a few archs where -fPIC should ALWAYS be
10 + # used in the creation of shared libraries. without the following, the
11 + # shared lib test will sometimes fail even when shared libs -can- be created.
12 + SFLAGS=${CFLAGS-"-O3"}
13 + SFLAGS="${SFLAGS} -fPIC"
15 case `(uname -s || echo unknown) 2>/dev/null` in
16 Linux | linux | GNU | GNU/*)