diff options
-rwxr-xr-x | source/current/gcc/gcc-multilib.SlackBuild | 19 |
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 |