diff options
Diffstat (limited to 'development/gcc5/gcc5.SlackBuild')
-rw-r--r-- | development/gcc5/gcc5.SlackBuild | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/development/gcc5/gcc5.SlackBuild b/development/gcc5/gcc5.SlackBuild index 452d839d2c..f8181187cb 100644 --- a/development/gcc5/gcc5.SlackBuild +++ b/development/gcc5/gcc5.SlackBuild @@ -73,11 +73,29 @@ if [ -z "$ARCH" ]; then export ARCH fi +if [ "$ARCH" = "x86_64" ]; then + if [ -f /usr/lib/libc.a ]; then + # If we find a 32bit C library on 64bit Slackware, assume multilib: + GCC_ARCHOPTS="--enable-multilib" + MULTILIB="YES" + else + GCC_ARCHOPTS="--disable-multilib" + MULTILIB="NO" + fi +else + GCC_ARCHOPTS="--with-arch=$ARCH" + MULTILIB="NO" +fi + # If the variable PRINT_PACKAGE_NAME is set, then this script will report what # the name of the created package would be, and then exit. This information # could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + if [ ${MULTILIB} = "YES" ]; then + echo "$PRGNAM-${VERSION}_multilib-$ARCH-$BUILD$TAG.$PKGTYPE" + else + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + fi exit 0 fi @@ -137,20 +155,6 @@ case "$ARCH" in *) TARGET=$ARCH-slackware-linux ;; esac -if [ "$ARCH" = "x86_64" ]; then - if [ -f /usr/lib/libc.a ]; then - # If we find a 32bit C library on 64bit Slackware, assume multilib: - GCC_ARCHOPTS="--enable-multilib" - MULTILIB="YES" - else - GCC_ARCHOPTS="--disable-multilib" - MULTILIB="NO" - fi -else - GCC_ARCHOPTS="--with-arch=$ARCH" - MULTILIB="NO" -fi - # Clear the build locations: rm -fr $TMP/fastjar-* $TMP/gcc-$VERSION $TMP/gcc.build.lnx $TMP/gcc.build.log $TMP/package-$PRGNAM |