Trying to fix issue #519

This commit is contained in:
Shoghi Cervantes 2014-01-18 12:23:45 +01:00
parent c9ab5ee0e9
commit 218fb5df3e

View File

@ -77,10 +77,17 @@ elif [ "$1" == "crosscompile" ]; then
exit 1 exit 1
fi fi
else else
echo "[INFO] Compiling for current machine" if [ `getconf LONG_BIT` = "64" ]; then
if [ $(uname -m) == "x86_64" ]; then echo "[INFO] Compiling for current machine using 64-bit"
CFLAGS="-mx32 $CFLAGS" CFLAGS="-m64 $CFLAGS"
else
echo "[INFO] Compiling for current machine using 32-bit"
CFLAGS="-m32 $CFLAGS"
fi fi
#echo "[INFO] Compiling for current machine"
#if [ $(uname -m) == "x86_64" ]; then
# CFLAGS="-mx32 $CFLAGS"
#fi
fi fi
type $CC >> "$DIR/install.log" 2>&1 || { echo >&2 "[ERROR] Please install \"$CC\""; read -p "Press [Enter] to continue..."; exit 1; } type $CC >> "$DIR/install.log" 2>&1 || { echo >&2 "[ERROR] Please install \"$CC\""; read -p "Press [Enter] to continue..."; exit 1; }