mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
development/mono: Fix source arch on x86.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
3be8811198
commit
778456cf46
1 changed files with 8 additions and 4 deletions
|
@ -25,17 +25,21 @@ PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i586" ]; then
|
if [ "$ARCH" = "i586" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
|
BOOTSTRAP_ARCH=i486
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
|
BOOTSTRAP_ARCH=i486
|
||||||
elif [ "$ARCH" = "x86_64" ]; then
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
SLKCFLAGS="-O2 -fPIC"
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
LIBDIRSUFFIX="64"
|
LIBDIRSUFFIX="64"
|
||||||
|
BOOTSTRAP_ARCH=x86_64
|
||||||
else
|
else
|
||||||
SLKCFLAGS="-O2"
|
SLKCFLAGS="-O2"
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
|
BOOTSTRAP_ARCH=i486
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
@ -56,9 +60,9 @@ find -L . \
|
||||||
|
|
||||||
# Use full featured precompiled mono version instead of monolite
|
# Use full featured precompiled mono version instead of monolite
|
||||||
pushd $TMP
|
pushd $TMP
|
||||||
rm -rf $PRGNAM-$BIN_VERSION-$ARCH
|
rm -rf $PRGNAM-$BIN_VERSION-$BOOTSTRAP_ARCH
|
||||||
tar xvf $CWD/$PRGNAM-$BIN_VERSION-$ARCH.tar.bz2
|
tar xvf $CWD/$PRGNAM-$BIN_VERSION-$BOOTSTRAP_ARCH.tar.bz2
|
||||||
export PATH="$TMP/$PRGNAM-$BIN_VERSION-$ARCH/usr/bin:$PATH"
|
export PATH="$TMP/$PRGNAM-$BIN_VERSION-$BOOTSTRAP_ARCH/usr/bin:$PATH"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
|
|
Loading…
Reference in a new issue