From 747ddcafe8fc0912ea1cacd252e5f9a204f5a7b5 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 20 Oct 2018 01:47:15 +0200 Subject: [PATCH] fix --- danio_gcc.sh | 4 ++-- runit-all.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/danio_gcc.sh b/danio_gcc.sh index 39ff3c1..81722dd 100644 --- a/danio_gcc.sh +++ b/danio_gcc.sh @@ -3,10 +3,10 @@ export PREFIX="`pwd`/rel-bin/${TARGET}" export PATH="${PREFIX}/bin:${PATH}" export OUT="`pwd`/out" -if [ "${1}" == "64" ]; then +if [ "${2}" == "64" ]; then export CC="cc -m64" export CXX="c++ -m64" -elif [ "${1}" == "32" ]; then +elif [ "${2}" == "32" ]; then export CC="cc -m32" export CXX="c++ -m32" else diff --git a/runit-all.sh b/runit-all.sh index 58282e9..30fba0a 100644 --- a/runit-all.sh +++ b/runit-all.sh @@ -15,7 +15,7 @@ for i in aarch64-${TUPLE}-linux alpha-${TUPLE}-linux arm-${TUPLE}-eabi arc-${TUP else sudo rm -rf binutils-* build-* LATEST-* gcc-* newlib-* - sudo ./danio_gcc.sh ${i} | tee out/${i}.log + sudo ./danio_gcc.sh ${i} ${1} | tee out/${i}.log fi done if [ -e .error ]; then