diff options
author | George Vlahavas <vlahavas@gmail.com> | 2016-08-24 07:07:29 +0700 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2016-08-28 00:22:40 +0100 |
commit | 778456cf469f116ea12c779e23988b2d15e45f30 (patch) | |
tree | bbc5367dd9abf6bc0fb66e4899a374851bfe8ae1 /development | |
parent | 3be8811198ba45dd8f3b00f298a42cbd49f7104a (diff) | |
download | slackbuilds-778456cf469f116ea12c779e23988b2d15e45f30.tar.gz |
development/mono: Fix source arch on x86.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r-- | development/mono/mono.SlackBuild | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/development/mono/mono.SlackBuild b/development/mono/mono.SlackBuild index cf903b3bed..3c669bb3aa 100644 --- a/development/mono/mono.SlackBuild +++ b/development/mono/mono.SlackBuild @@ -25,17 +25,21 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" + BOOTSTRAP_ARCH=i486 elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" + BOOTSTRAP_ARCH=i486 elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" + BOOTSTRAP_ARCH=x86_64 else SLKCFLAGS="-O2" LIBDIRSUFFIX="" + BOOTSTRAP_ARCH=i486 fi set -e @@ -56,9 +60,9 @@ find -L . \ # Use full featured precompiled mono version instead of monolite pushd $TMP -rm -rf $PRGNAM-$BIN_VERSION-$ARCH -tar xvf $CWD/$PRGNAM-$BIN_VERSION-$ARCH.tar.bz2 -export PATH="$TMP/$PRGNAM-$BIN_VERSION-$ARCH/usr/bin:$PATH" +rm -rf $PRGNAM-$BIN_VERSION-$BOOTSTRAP_ARCH +tar xvf $CWD/$PRGNAM-$BIN_VERSION-$BOOTSTRAP_ARCH.tar.bz2 +export PATH="$TMP/$PRGNAM-$BIN_VERSION-$BOOTSTRAP_ARCH/usr/bin:$PATH" popd CFLAGS="$SLKCFLAGS" \ |