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

Matt Bartley mbartley2 at cox.NOSPAM.net
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

CFLAGS=-fPIC -DHAVE_UNISTD_H -DUSE_MMAP

Using just
./configure --prefix=/usr --share
yields a Makefile including
CFLAGS=-fPIC -O3 -DHAVE_UNISTD_H -DUSE_MMAP

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
CFLAGS=-fPIC -O3 -march=i486 -DHAVE_UNISTD_H -DUSE_MMAP

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 linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list