http://archives.linuxfromscratch.org/mail-archives/blfs-support/2005-June/055216.html

I happened to miss this wonderful guide when I did mine.

LFS: 7.0-cross-20051007-x86_64_multilib
BLFS: SVN 20051008
Here are some details I have from my record. Hope it helps.


openssl-0.9.8
    1. allow-64 patch From BLFS Patch centre.
    2  change LIBDIR=lib to LIBDIR=lib64 in file Makefile.org
    3  ./config --openssldir=/etc/ssl --prefix=/usr shared
    4  change contents in include/openssl/opensslconf.h and
crypto/opensslconf.h
             #define ENGINESDIR "/usr/lib/engines"
         to #define ENGINESDIR "/usr/lib64/engines"
    5  make MANDIR=/usr/share/man
    6  make MANDIR=/usr/share/man install
    7  mv /usr/lib/engines /usr/lib64/
    8  cp -r certs /etc/ssl


xfsprogs-2.7.3
    Have to adjust the CC and LTCC in /usr/bin/libtool.
    LTCC="gcc"
    CC="gcc"
    Otherwise, the infer tag problem occurs.
    Change it back when finished.


emacs
     patch from:

http://www.gtlib.cc.gatech.edu/pub/gentoo/gentoo-x86/app-editors/emacs/files/

openssh-4.2p1
      do not use the sed in the instrutction.(for the static build)

mdadm-2.1
    Delete "-Werror" in the CWFLAGS variable in the file Makefile
    then run
    make CC="gcc -m64" DESTDIR=""
    make DESTDIR="" install


Python-2.4.1
      patch as usual
      ./configure --prefix=/usr --enable-shared --libdir=/usr/lib64
      make LIBDIR=/usr/lib64 SCRIPTDIR=/usr/lib64
      make LIBDIR=/usr/lib64 SCRIPTDIR=/usr/lib64 install

tcp_wrappers_7.6
      Before make install,adjust Makefile, Change to /usr/lib64.

samba
      In case you need heidmal (that's what I did):
     Adjust Makefile after configure,
      add "-lkrb5" to LIBS和AUTH_LIBS
      Change KRB5LIBS to "KRB5LIBS=-L/lib64"
      then make.
     after "make", change LIBDIR variable in Makefile to
"${prefix}/lib64/samba"
     then make install

libxml2 and libxslt
      specify --with-python=/usr/lib64 when configure.

glib-1.2.10
     I don't know why, this package does not
     accept "x86_64-unknow-linux-gnu" as host/build/target.

     configure using --host=i686-pc-linux-gnu
     (Don't forget the --libdir=/usr/lib64)
     and then change host_alias and host_triplet variables in Makefile.

guile
      After installation, change the LTDL_SYSSEARCHPATH variable
      in /usr/include/libguile/scmconfig.h
      Otherwise, compilation of G-Wrap will fail.

expat
       move lib files in /usr/lib to /usr/lib64

jpeg-6b
       same as xfsprogs. change file /usr/bin/libtool

libpng
       in the end, make LIBPATH=/usr/lib64 install

libmng
       -fPIC is needed in CC. You can change it in Makefile.
       Some paths about lib has to be changed too.

pciutils
       change lib path in Makefile

XOrg
      In host.def. #define HaveLib64 Yes
                   #define Freetype2LibDir usr/lib64
      I use PAM, so
                   #define HasPam YES
                   #define HasPamMisc YES

      pam.d/xserver is the file for PAM.
      auth  sufficient pam_rootok.so
      auth  required  pam_securetty.so
      account required  pam_permit.so

fontconfig
      After installation, adjust the file /usr/lib64/libfontconfig.la
      The variable dependency_libs. Otherwise cairo will fail.

cairo.la
      same as fontconfig, but different file /usr/lib64/libcairo.la

ImageMagick
      configure with LDFLAGS=-L/usr/lib64

gtk+
      configure with --host="i686-pc-linux-gnu" first and then adjust
Makefile.

qt:
    I use the /opt/qt option.

    a lot of changes here.
    1. ALL *test files under config.tests.
    2. ALL qmake.conf files.
    3. some  other files.

   find ./config.tests -name \*test -exec sed -i -e 's:/usr/lib
/lib:/usr/lib64 /lib64:' {} \;
   find -name qmake.conf -exec sed  -i -e
's:/usr/X11R6/lib:/usr/X11R6/lib64:' {} \;
   sed -i -e 's:/lib /usr/lib:/lib64 /usr/lib64'
config.tests/unix/checkavail
   for x in ./src/kernel/qpsprinter.cpp ./src/3rdparty/zlib/FAQ \
      ./src/3rdparty/libmng/aclocal.m4 ./src/3rdparty/libmng/configure
  do
     sed -i -e 's:/usr/X11R6/lib:/usr/X11R6/lib64:' $x
   done

    I am not sure whether there are still some left,
    but the build is successful.


For now, these are the packages I build. But I think I am moving to a Pure64
lfs
unless there are something done for the /lib /lib32 and /lib64. ( I would
like /lib64 symlink to /lib)

William Zhou.


-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to