CVS 20030513: remove CFLAGS munging from chapter 6 zlib-1.1.4

Matt Bartley mbartley2 at
Wed May 14 16:11:17 PDT 2003

In CVS 20030513, the chapter 6 build instructions for zlib-1.1.4 are

CFLAGS="$CFLAGS -fPIC" ./configure --prefix=/usr --shared

But if the CFLAGS environment variable is undefined, as is now 
recommended, the resulting Makefile includes


Using just
./configure --prefix=/usr --share
yields a Makefile including

Thus -O3 got eliminated.  Not catastropic, but is that the intent here?

For the build I'm working on now, I used
CFLAGS="-fPIC -O3 -march=i486"
which yielded in the Makefile

neatly inserting -march=i486 into the build sequence.

I'd recommend this for the book:

./configure --prefix=/usr --shared &&
make &&
make test &&
make install &&
make clean &&
./configure --prefix=/usr &&
make &&
make test &&
make install
Unsubscribe: send email to listar at
and put 'unsubscribe lfs-dev' in the subject header of the message

More information about the lfs-dev mailing list