mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 00:29:54 +00:00
Trying to fix issue #519
This commit is contained in:
parent
c9ab5ee0e9
commit
218fb5df3e
@ -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; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user