tazwok rev 528
Fixed tazwok.conf to have tazwok cross compile right. Also using -Os to save on packages size.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat May 21 15:44:30 2011 +0000 (2011-05-21) |
parents | 16535e94a03e |
children | 6fe970cb66eb |
files | examples/tazwok.conf |
line diff
1.1 --- a/examples/tazwok.conf Tue May 17 13:35:00 2011 +0000 1.2 +++ b/examples/tazwok.conf Sat May 21 15:44:30 2011 +0000 1.3 @@ -15,8 +15,15 @@ 1.4 # Default architecture. 1.5 ARCH="i486" 1.6 1.7 +# Build and host. These options are for cross-compiling. If you specify 1.8 +# both options and BUILD_SYSTEM is different from HOST_SYSTEM, configure 1.9 +# will prepare to cross-compile from BUILD_SYSTEM to be used on HOST_SYSTEM. 1.10 +BUILD_SYSTEM="$(uname -m)-slitaz-linux" 1.11 +#BUILD_SYSTEM="$ARCH-slitaz-linux" 1.12 +HOST_SYSTEM="$ARCH-slitaz-linux" 1.13 + 1.14 # Default build host. 1.15 -BUILD_HOST="$ARCH-pc-linux-gnu" 1.16 +BUILD_HOST="$HOST_SYSTEM" 1.17 1.18 # Default compilation flags. 1.19 # More details at : 1.20 @@ -38,11 +45,12 @@ 1.21 # Cook packages fully optimized for your hardware - Warning, compatible only 1.22 # with same hardware and newest of the same family : 1.23 #CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" 1.24 -CFLAGS="-mtune=$ARCH -O2 -pipe -fomit-frame-pointer" 1.25 +#CFLAGS="-mtune=$ARCH -O2 -pipe -fomit-frame-pointer" 1.26 +CFLAGS="-march=$ARCH -0s -pipe -fomit-frame-pointer" 1.27 CXXFLAGS="$CFLAGS" 1.28 1.29 # Default tool prefix. 1.30 -TOOLPREFIX="${BUILD_HOST}-" 1.31 +TOOLPREFIX="${HOST_SYSTEM}-" 1.32 1.33 # Default arguments for GNU configure. 1.34 default_prefix=/usr 1.35 @@ -51,10 +59,10 @@ 1.36 default_localedir=$default_datarootdir/locale 1.37 default_infodir=$default_datarootdir/info 1.38 default_mandir=$default_datarootdir/man 1.39 -default_build="$BUILD_HOST" 1.40 -default_host="$BUILD_HOST" 1.41 +default_build="$BUILD_SYSTEM" 1.42 +default_host="$HOST_SYSTEM" 1.43 # CONFIGURE_ARGS is here only for backward compatibility. 1.44 -CONFIGURE_ARGS="--build=$BUILD_HOST --host=$BUILD_HOST" 1.45 +CONFIGURE_ARGS="--build=$BUILD_SYSTEM --host=$HOST_SYSTEM" 1.46 1.47 # Translation files to be included in packages. Note that you can specify 1.48 # several locales.