diff options
author | Travis Tilley <lv@gentoo.org> | 2004-08-29 03:07:07 +0000 |
---|---|---|
committer | Travis Tilley <lv@gentoo.org> | 2004-08-29 03:07:07 +0000 |
commit | a98b11a7c1fdb638d9443f16ef1c6806312fe874 (patch) | |
tree | 14bac423d4bc48f22723c3182b7606c620cc7eef /sys-libs/zlib/files | |
parent | Removed old ebuild. (diff) | |
download | historical-a98b11a7c1fdb638d9443f16ef1c6806312fe874.tar.gz historical-a98b11a7c1fdb638d9443f16ef1c6806312fe874.tar.bz2 historical-a98b11a7c1fdb638d9443f16ef1c6806312fe874.zip |
added a patch to always use -fPIC for the shared library test, otherwise it may fail on -fPIC dependant archs. fixes bug #61868
Diffstat (limited to 'sys-libs/zlib/files')
-rw-r--r-- | sys-libs/zlib/files/zlib-1.2.1-fPIC.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys-libs/zlib/files/zlib-1.2.1-fPIC.patch b/sys-libs/zlib/files/zlib-1.2.1-fPIC.patch new file mode 100644 index 000000000000..a9be0c1b042d --- /dev/null +++ b/sys-libs/zlib/files/zlib-1.2.1-fPIC.patch @@ -0,0 +1,15 @@ +--- zlib-1.2.1.old/configure 2004-08-28 08:19:49.000000000 -0400 ++++ zlib-1.2.1/configure 2004-08-28 08:33:57.745864064 -0400 +@@ -73,7 +73,11 @@ + + if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then + CC="$cc" +- SFLAGS=${CFLAGS-"-fPIC -O3"} ++ #SFLAGS=${CFLAGS-"-fPIC -O3"} ++ # the above is horribly wrong on a few archs where -fPIC should ALWAYS be ++ # used in the creation of shared libraries. without the following, the ++ # shared lib test will sometimes fail even when shared libs -can- be created. ++ SFLAGS="${CFLAGS-"-O3"} -fPIC" + CFLAGS="$cflags" + case `(uname -s || echo unknown) 2>/dev/null` in + Linux | linux | GNU | GNU/*) |