cookutils rev 438
cook: use -m64 gcc option when cross-compiling for x86_64
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 22 18:44:33 2012 +0200 (2012-05-22) |
parents | cc91909f0591 |
children | 5bd627d11dc8 |
files | cook |
line diff
1.1 --- a/cook Tue May 22 17:29:59 2012 +0200 1.2 +++ b/cook Tue May 22 18:44:33 2012 +0200 1.3 @@ -419,8 +419,13 @@ 1.4 fi 1.5 export CROSS_COMPILE=${HOST_SYSTEM}- 1.6 echo "Using cross-tools: $CROSS_COMPILE" 1.7 - export CC=${HOST_SYSTEM}-gcc 1.8 - export CXX=${HOST_SYSTEM}-g++ 1.9 + if [ "$ARCH" == "x86_64" ]; then 1.10 + export CC="${HOST_SYSTEM}-gcc -m64" 1.11 + export CXX="${HOST_SYSTEM}-g++ -m64" 1.12 + else 1.13 + export CC=${HOST_SYSTEM}-gcc 1.14 + export CXX=${HOST_SYSTEM}-g++ 1.15 + fi 1.16 export AR=${HOST_SYSTEM}-ar 1.17 export AS=${HOST_SYSTEM}-as 1.18 export RANLIB=${HOST_SYSTEM}-ranlib