diff options
author | Eric Hameleers <alien@slackware.com> | 2010-01-23 14:49:27 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2010-01-23 14:49:27 +0000 |
commit | 4c2f79ef5a4fd5c5f87503e158e13e49c2a6c102 (patch) | |
tree | 05cedf7706572b38010ffafe46c84dabebdfcf6c /13.37/gcc | |
parent | 94d17c9309b2a584cb03006d666219af90f74459 (diff) | |
download | multilib-4c2f79ef5a4fd5c5f87503e158e13e49c2a6c102.tar.gz multilib-4c2f79ef5a4fd5c5f87503e158e13e49c2a6c102.tar.xz |
Updated to 4.4.3
Diffstat (limited to '13.37/gcc')
-rwxr-xr-x | 13.37/gcc/gcc-multilib.SlackBuild | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/13.37/gcc/gcc-multilib.SlackBuild b/13.37/gcc/gcc-multilib.SlackBuild index 817314d..049b8de 100755 --- a/13.37/gcc/gcc-multilib.SlackBuild +++ b/13.37/gcc/gcc-multilib.SlackBuild @@ -2,7 +2,7 @@ # GCC package build script (written by volkerdi@slackware.com) # # Copyright 2003, 2004 Slackware Linux, Inc., Concord, California, USA -# Copyright 2005, 2006, 2007, 2008, 2009 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2005, 2006, 2007, 2008, 2009, 2010 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -42,8 +42,18 @@ # I see no reason to continue 386 support in the latest Slackware (and indeed # it's no longer easily possible). -VERSION=4.4.2 -ARCH=${ARCH:-x86_64} +VERSION=4.4.3 + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi + TARGET=$ARCH-slackware-linux BUILD=${BUILD:-1alien} @@ -73,6 +83,9 @@ elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi CWD=$(pwd) |