Results 1 to 2 of 2

Thread: Mini PET - Getting up to speed with combreloc

  1. #1
    Guest

    Mini PET - Getting up to speed with combreloc

    Many people use the dirty prelinking hack to decrease loading times for KDE and KDE apps, however using prelinking and binutils 2.12 will lead to certain segmentation fault hell, because binutils 2.12 includes a similar linker feature called -z combreloc. This however isn't enabled per default. So here goes a guide for ix86.

    So here's the safe way to enable combreloc.

    enabling combreloc:
    edit the $src_dir/ld/ldmain.c
    find combreloc, change this from false to true.
    compile binutils.

    Making things faster:
    recompile glibc with your new binutils package.
    recompile QT3 + KDE

    Making things even faster.
    edit your qt make file:
    $src_dir/mkspecs/linux-g++/qmake.conf
    change CFLAGS
    from -pipe
    to -march=athlon-tbird -O3 -pipe -fomit-frame-pointer
    (athlon-tbird is GCC3.1, you should replace this depending on your CPU type, most likely i686, if you use GCC 2.95.3))

    Exporting the same CFLAGS and CXXFLAGS as above for KDE compilation:
    export CFLAGS="athlon-tbird -O3 -pipe -fomit-frame-pointer"
    export CXXFLAGS="athlon-tbird -O3 -pipe -fomit-frame-pointer"

    for KDELIBS, make sure --enable-fast-malloc=full is apart of your ./configure string.
    To decrease compilation times, make sure you use --enable-final and --disable-debug for all KDE packages

    KDEmulitmedia will segfault when running artsd and noatun if you use -fomit-frame-pointer for this package, it's recommended that you remove this flag for this package.

    Impress your friends:
    load something big in KDE and watch in amazement at the speed which your applications now loads

    Hope you enjoyed this guide, I'll expand it a bit a submit it to the archive later.

  2. #2
    Senior Member
    Join Date
    May 2002
    Posts
    394

    Re:Mini PET - Getting up to speed with combreloc

    good stuff bro ;D

Similar Threads

  1. Mac Mini
    By gmoreno in forum Linux Distros
    Replies: 2
    Last Post: 08-04-2005, 02:22 AM
  2. Mac Mini Review.
    By comtux in forum General Chat
    Replies: 0
    Last Post: 05-25-2005, 10:31 AM
  3. Mac Mini
    By TeRG in forum Linux Distros
    Replies: 7
    Last Post: 02-19-2005, 12:16 AM
  4. mini itx stuff
    By ph34r in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 02-22-2004, 08:27 PM
  5. Replies: 0
    Last Post: 06-18-2002, 07:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •