On 4/29/06, Jeremy Byron <[EMAIL PROTECTED]> wrote:
M.Canales.es wrote:
> - Also, the book say that if using CFLAGS you must to add "-fPIC" when
> building Zlib and remove it afterwards. That could to mean that Zlib will
> need a separate LEVEL and be added to def_opt_override to use that level.
Yup. Perhaps simply:
echo "zlib fPIC" >> common/def_opt_override
Now seems like a good time to bring up something that died on the -dev
list a while back. The zlib maintainer said he would incorporate this
fix into the next release.
--- configure.bak 2005-07-11 13:11:57.000000000 -0700
+++ configure 2006-05-02 06:09:37.374408229 -0700
@@ -73,7 +73,7 @@
if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then
CC="$cc"
- SFLAGS=${CFLAGS-"-fPIC -O3"}
+ SFLAGS="${CFLAGS--O3} -fPIC"
CFLAGS="$cflags"
case `(uname -s || echo unknown) 2>/dev/null` in
Linux | linux | GNU | GNU/*) LDSHARED=${LDSHARED-"$cc -shared
-Wl,-soname,libz.so.1"};;
Then, -fPIC is always added to the shared library flags. This can be
accomplished with the following sed:
sed -i.bak 's/SFLAGS=.*fPIC/SFLAGS="\${CFLAGS--O3} -fPIC"/' configure
--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page