# HG changeset patch # User Christophe Lincoln # Date 1305911105 -7200 # Node ID 28d2b66fcdd5938b517eb5b684282fd05702721b # Parent 26462794f0056e2001119e5707080f7dc8bc000d cook.conf: use -march and dont cross compile by default (we fully i486 anywhere if we build a i486 compiler) diff -r 26462794f005 -r 28d2b66fcdd5 cook.conf --- a/cook.conf Fri May 20 01:37:23 2011 +0200 +++ b/cook.conf Fri May 20 19:05:05 2011 +0200 @@ -4,7 +4,7 @@ # SliTaz working directory SLITAZ="/home/slitaz" -# Directory paths. +# Directory paths for cookutils DB and files. WOK="$SLITAZ/wok" PKGS="$SLITAZ/packages" SRC="$SLITAZ/src" @@ -12,7 +12,7 @@ LOGS="$SLITAZ/log" DATA="/usr/share/cook" -# System packages. +# System packages DB. DB="/var/lib/tazpkg" INSTALLED="$DB/installed" @@ -26,20 +26,21 @@ # Translation files to be included in packages. LOCALE="" -# Target host architecture type (Glibc dont build on i686 for i386). +# Target host architecture type (Glibc dont support i386 anymore). ARCH="i486" # Build and host. These options are for cross-compiling. If you specify # both options and BUILD_SYSTEM is different from HOST_SYSTEM, configure # will prepare to cross-compile from BUILD_SYSTEM to be used on HOST_SYSTEM. -BUILD_SYSTEM="$(uname -m)-pc-linux-gnu" -HOST_SYSTEM="$ARCH-pc-linux-gnu" +#BUILD_SYSTEM="$(uname -m)-slitaz-linux" +BUILD_SYSTEM="$ARCH-slitaz-linux" +HOST_SYSTEM="$ARCH-slitaz-linux" # SliTaz optimisation flags - Wide compatibility & optimized for ARCH. # With -O2: binutils: Produce 14.0M Packed 5.5M Compressed 1.2M # With -Os: binutils: Produce 13.4M Packed 4.9M Compressed 1.1M MAKEFLAGS="-j$(($(grep processor /proc/cpuinfo | wc -l)+1))" -CFLAGS="-mtune=$ARCH -Os -pipe -fomit-frame-pointer" +CFLAGS="-march=$ARCH -Os -pipe -fomit-frame-pointer" CXXFLAGS="$CFLAGS" # Default tool prefix for Binutils.