This is the old SliTaz forum - Please use the main forum.slitaz.org

Why is self built package larger than pre-built
  • goddisignzgoddisignz December 2010
    Hi together,

    I tried to create a package via "tazwok cook mpd". It successfully compiled and built a nice package. The question i have now, why has the self-built package 268kB and the prebuilt package 132kB? Thats not even half the size! I really don't have much memory, so I even built my own Kernel with 1MB and without other modules. I try to get everything REALLY small.

    Is it because in the mpd makefile CFLAGS="-g -O2" insted of CFLAGS="-g -Os".
    By the Way, is there something like a make.conf (like in gentoo) where I can set the CFLAGS or CXXFLAGS.

    Thanks for any kind of information.

    Goddisignz
  • GokhlayehGokhlayeh December 2010
    Hi goddisignz,

    Maybe you can test this about flags :
    echo 'CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" 
    CXXFLAGS="$CFLAGS"
    MAKEFLAGS=-j$((`grep processor /proc/cpuinfo | wc -l`+1))
    export CFLAGS CXXFLAGS MAKEFLAGS' >> /etc/tazwok.conf


    Note : don't use -pipe with less than 512Mb RAM free or you will experience gcc crashes.

    Hope this help.

    And I've no answer about the size of you're package.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social