[Bug 524] New: Update for zlib and bzip2 installation instructions

bugzilla at linuxfromscratch.org bugzilla at linuxfromscratch.org
Sat May 10 15:49:33 PDT 2003


           Summary: Update for zlib and bzip2 installation instructions
           Product: Linux From Scratch
           Version: CVS
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Book
        AssignedTo: lfs-book at linuxfromscratch.org
        ReportedBy: gerard at linuxfromscratch.org
         QAContact: lfs-book at linuxfromscratch.org

>From Zack Winkles:

10. Build proper bzip2 libraries. We build the correct libbz2.so, as the
   Makefile adds -fPIC by itself, but then we simply run make, which adds
   all this PIC code into a static libbz2.a, which is completely
   unnecessary and unoptimal. In doing this, we slow down anything that
   uses libbz2.a by 20%. The ONLY thing needed to build a proper libbz2.a
   and libbz2.so is to make clean right after make -f Makefile-libbz2_so.
   The make clean leaves bzip2-shared and libbz2.so* intact, so there is
   no harm, only gain.

11. Build proper zlib libraries. The reasoning behind this is the exact
   same as that of libbz2, but the procedure is a bit more involved. The
   following commands do what we need:
        CFLAGS="$CFLAGS -fPIC" ./configure --prefix=/usr --shared
        make install
        make clean
        ./configure --prefix=/usr
        make install

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the QA contact for the bug, or are watching the QA contact.
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-book' in the subject header of the message

More information about the lfs-book mailing list