bzip2 Makefile modification - LFS Hint

J.A. Neitzel jan.listbox at
Fri Sep 15 16:23:25 PDT 2000

Chapter 6. Installing basic system software
		Installing Bzip2

Hi all,

Since I'm supremely lazy and have installed bzip2 so many times here and
there, I changed the Makefile to my like to reduce # of keystrokes.

I added as attachment for those who are interested. You can also get it

I added comments so you can see what I did. You can now install bzip2 and
be on your way with the following instructions.

------ Begin ------
Open Makefile in editor to change CFLAGS if you want or pass CFLAGS to
make as below ("xxx" is "i686" for me).

root:bzip2-1.0.1#  zcat ../bzip2-1.0.1.patch.gz | patch -Np1
root:bzip2-1.0.1#  make CFLAGS='-O3 -mcpu=xxx -march=xxx'  # your choice
root:bzip2-1.0.1#  make install
root:bzip2-1.0.1#  rm /usr/lib/libbz2.a	# if necessary for you
------ End ------

J.A. Neitzel
jan at

More information about the lfs-dev mailing list