summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2020-03-14 18:50:06 +0000
committer Eric Hameleers <alien@slackware.com>2020-03-14 18:50:06 +0000
commit208f2c7f6d9c2e771247ffc81aa9b22722d13b59 (patch)
tree2227d2a90b432f4dd262c1160a43b99f6092660a
parent20d3994cb6e920d2903eef3ed848cf73c183981a (diff)
downloadmultilib-208f2c7f6d9c2e771247ffc81aa9b22722d13b59.tar.gz
multilib-208f2c7f6d9c2e771247ffc81aa9b22722d13b59.tar.xz
gcc-multilib: update to 9.3.0 with some fixes contributed by Pat V. for which a huge amount of thanks
-rwxr-xr-xsource/current/gcc/gcc-multilib.SlackBuild19
1 files changed, 10 insertions, 9 deletions
diff --git a/source/current/gcc/gcc-multilib.SlackBuild b/source/current/gcc/gcc-multilib.SlackBuild
index b97a315..3ad765d 100755
--- a/source/current/gcc/gcc-multilib.SlackBuild
+++ b/source/current/gcc/gcc-multilib.SlackBuild
@@ -60,12 +60,12 @@
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=gcc
-SRCVER=${SRCVER:-"9.2.0"}
+SRCVER=${SRCVER:-"9.3.0"}
VERSION=$(echo $SRCVER | cut -f 1 -d _)
-BUILD=${BUILD:-4alien}
+BUILD=${BUILD:-1alien}
# How many jobs to run in parallel:
-NUMJOBS=${NUMJOBS:-"$(nproc)"}
+NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
# What do we want to build
LANGS=${LANGS:-'ada,brig,c,c++,d,fortran,go,lto,objc,obj-c++'}
@@ -189,10 +189,10 @@ tar xf $CWD/gcc-$SRCVER.tar.?z || exit 1
# Fix perms/owners:
chown -R root:root .
- find . -perm 777 -exec chmod 755 {} \;
- find . -perm 775 -exec chmod 755 {} \;
- find . -perm 754 -exec chmod 755 {} \;
- find . -perm 664 -exec chmod 644 {} \;
+ find . -perm 777 -exec chmod 755 {} \+
+ find . -perm 775 -exec chmod 755 {} \+
+ find . -perm 754 -exec chmod 755 {} \+
+ find . -perm 664 -exec chmod 644 {} \+
# Install docs:
mkdir -p $PKG1/usr/doc/gcc-$VERSION
@@ -349,8 +349,9 @@ tar xf $CWD/gcc-$SRCVER.tar.?z || exit 1
) || exit 1
# build gcc
-( mkdir gcc.build.lnx;
- cd gcc.build.lnx;
+( rm -rf gcc.build.lnx
+ mkdir gcc.build.lnx
+ cd gcc.build.lnx
# I think it's incorrect to include this option (as it'll end up set
# to i586 on x86 platforms), and we want to tune the binary structure