This commit is contained in:
Daniel
2018-10-20 01:33:15 +02:00
parent 22e95b4eef
commit c89b485eea
2 changed files with 14 additions and 9 deletions
+12 -1
View File
@@ -3,6 +3,17 @@ export PREFIX="`pwd`/rel-bin/${TARGET}"
export PATH="${PREFIX}/bin:${PATH}"
export OUT="`pwd`/out"
if [ "${1}" == "64" ]; then
export CC="cc -m64"
export CXX="c++ -m64"
elif [ "${1}" == "32" ]
export CC="cc -m32"
export CXX="c++ -m32"
else
export CC="cc"
export CXX="c++"
fi
#### JEŚLI BĘDĄ NOWE WERSJE BINUTILS'A i GCC PROSZĘ ZMIENIĆ NUMER!!!
export binutils_version="2.31" #TU ZMIENIAMY!
export newlib_version="3.0.0" #TU ZMIENIAMY!
@@ -83,7 +94,7 @@ if (
then
find ${PREFIX} | xargs file | grep "ELF" | grep "executable" | cut -f 1 -d ":" | xargs strip -S 2>/dev/null
mkdir -pv out
if [ "${CC}" == "cc -m64" ]; then
if [ "${1}" == "64" ]; then
(cd ${PREFIX}; tar -cJf "${OUT}/${TARGET}-`date +"%d-%m-%Y"`_x86-64.txz" .)
else
(cd ${PREFIX}; tar -cJf "${OUT}/${TARGET}-`date +"%d-%m-%Y"`_x86-32.txz" .)
+2 -8
View File
@@ -27,14 +27,8 @@ fi
mkdir -p out
case ${1} in
64)
export CC="cc -m64"
export CXX="c++ -m64"
build ;;
32)
export CC="cc -m32"
export CXX="c++ -m32"
build ;;
64) build 64;;
32) build 32;;
--build-upload) ${0} 64 && ${0} 32 && surge ./out gcc.danio.ga ;;
--build) ${0} 64 && ${0} 32 ;;
esac