diff options
Diffstat (limited to 'development/julia/julia.SlackBuild')
-rw-r--r-- | development/julia/julia.SlackBuild | 31 |
1 files changed, 6 insertions, 25 deletions
diff --git a/development/julia/julia.SlackBuild b/development/julia/julia.SlackBuild index e3d2af1bc4..1e474f40fb 100644 --- a/development/julia/julia.SlackBuild +++ b/development/julia/julia.SlackBuild @@ -28,37 +28,18 @@ VERSION_TAG=${VERSION_TAG:-b24213b893} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i486 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi +ARCH=${ARCH:-$(uname -m)} +case "$ARCH" in + i?86) ARCH=i686; LIBDIRSUFFIX="" ;; + x86_64) LIBDIRSUFFIX="64" ;; + *) echo "$ARCH is not supported"; exit 1 ;; +esac CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" - ARCH=i386 -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" - ARCH=i386 -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" - ARCH=x86_64 -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" - ARCH=i386 -fi - set -e rm -rf $PKG |