# HG changeset patch # User Christopher Rogers # Date 1305992670 0 # Node ID a34890921ac4e17d897b0e493dad9f4efe4cdc40 # Parent 16535e94a03e63f7525cc397b1bf9794ede9de2e Fixed tazwok.conf to have tazwok cross compile right. Also using -Os to save on packages size. diff -r 16535e94a03e -r a34890921ac4 examples/tazwok.conf --- a/examples/tazwok.conf Tue May 17 13:35:00 2011 +0000 +++ b/examples/tazwok.conf Sat May 21 15:44:30 2011 +0000 @@ -15,8 +15,15 @@ # Default architecture. 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)-slitaz-linux" +#BUILD_SYSTEM="$ARCH-slitaz-linux" +HOST_SYSTEM="$ARCH-slitaz-linux" + # Default build host. -BUILD_HOST="$ARCH-pc-linux-gnu" +BUILD_HOST="$HOST_SYSTEM" # Default compilation flags. # More details at : @@ -38,11 +45,12 @@ # Cook packages fully optimized for your hardware - Warning, compatible only # with same hardware and newest of the same family : #CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" -CFLAGS="-mtune=$ARCH -O2 -pipe -fomit-frame-pointer" +#CFLAGS="-mtune=$ARCH -O2 -pipe -fomit-frame-pointer" +CFLAGS="-march=$ARCH -0s -pipe -fomit-frame-pointer" CXXFLAGS="$CFLAGS" # Default tool prefix. -TOOLPREFIX="${BUILD_HOST}-" +TOOLPREFIX="${HOST_SYSTEM}-" # Default arguments for GNU configure. default_prefix=/usr @@ -51,10 +59,10 @@ default_localedir=$default_datarootdir/locale default_infodir=$default_datarootdir/info default_mandir=$default_datarootdir/man -default_build="$BUILD_HOST" -default_host="$BUILD_HOST" +default_build="$BUILD_SYSTEM" +default_host="$HOST_SYSTEM" # CONFIGURE_ARGS is here only for backward compatibility. -CONFIGURE_ARGS="--build=$BUILD_HOST --host=$BUILD_HOST" +CONFIGURE_ARGS="--build=$BUILD_SYSTEM --host=$HOST_SYSTEM" # Translation files to be included in packages. Note that you can specify # several locales.