games/circuslinux: i486 => i586.

This commit is contained in:
B. Watson 2016-08-19 04:59:40 -04:00 committed by Willy Sudiarto Raharjo
parent 91a654046c
commit 1c847556a9
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
1 changed files with 6 additions and 4 deletions

View File

@ -14,7 +14,7 @@ TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@ -25,15 +25,17 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
else
SLKCFLAGS="-O2"
fi
set -eu
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT