cookutils rev 185

cook.conf: use -march and dont cross compile by default (we fully i486 anywhere if we build a i486 compiler)
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 20 19:05:05 2011 +0200 (2011-05-20)
parents 26462794f005
children e3baad2c181f
files cook.conf
line diff
     1.1 --- a/cook.conf	Fri May 20 01:37:23 2011 +0200
     1.2 +++ b/cook.conf	Fri May 20 19:05:05 2011 +0200
     1.3 @@ -4,7 +4,7 @@
     1.4  # SliTaz working directory
     1.5  SLITAZ="/home/slitaz"
     1.6  
     1.7 -# Directory paths.
     1.8 +# Directory paths for cookutils DB and files.
     1.9  WOK="$SLITAZ/wok"
    1.10  PKGS="$SLITAZ/packages"
    1.11  SRC="$SLITAZ/src"
    1.12 @@ -12,7 +12,7 @@
    1.13  LOGS="$SLITAZ/log"
    1.14  DATA="/usr/share/cook"
    1.15  
    1.16 -# System packages.
    1.17 +# System packages DB.
    1.18  DB="/var/lib/tazpkg"
    1.19  INSTALLED="$DB/installed"
    1.20  
    1.21 @@ -26,20 +26,21 @@
    1.22  # Translation files to be included in packages.
    1.23  LOCALE=""
    1.24  
    1.25 -# Target host architecture type (Glibc dont build on i686 for i386).
    1.26 +# Target host architecture type (Glibc dont support i386 anymore).
    1.27  ARCH="i486"
    1.28  
    1.29  # Build and host. These options are for cross-compiling. If you specify
    1.30  # both options and BUILD_SYSTEM is different from HOST_SYSTEM, configure
    1.31  # will prepare to cross-compile from BUILD_SYSTEM to be used on HOST_SYSTEM.
    1.32 -BUILD_SYSTEM="$(uname -m)-pc-linux-gnu"
    1.33 -HOST_SYSTEM="$ARCH-pc-linux-gnu"
    1.34 +#BUILD_SYSTEM="$(uname -m)-slitaz-linux"
    1.35 +BUILD_SYSTEM="$ARCH-slitaz-linux"
    1.36 +HOST_SYSTEM="$ARCH-slitaz-linux"
    1.37  
    1.38  # SliTaz optimisation flags - Wide compatibility & optimized for ARCH.
    1.39  # With -O2: binutils: Produce 14.0M Packed 5.5M Compressed 1.2M
    1.40  # With -Os: binutils: Produce 13.4M Packed 4.9M Compressed 1.1M
    1.41  MAKEFLAGS="-j$(($(grep processor /proc/cpuinfo | wc -l)+1))"
    1.42 -CFLAGS="-mtune=$ARCH -Os -pipe -fomit-frame-pointer"
    1.43 +CFLAGS="-march=$ARCH -Os -pipe -fomit-frame-pointer"
    1.44  CXXFLAGS="$CFLAGS"
    1.45  
    1.46  # Default tool prefix for Binutils.