aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkhronosschoty <khronosschoty@posteo.org>2018-02-23 23:40:10 +0000
committerDavid Spencer <idlemoor@slackbuilds.org>2018-02-23 23:40:10 +0000
commit55e61ee466192c72872f96ad1fc80b878cd61bad (patch)
treecbebd3c3302d72d1c89b6a29ced41b62853c2da3
parentf37cd15a77eb47353b42cd800fd278390266cbb1 (diff)
development/gcclegacy494: Updated for version 4.9.4.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r--development/gcclegacy494/gcclegacy494.SlackBuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/development/gcclegacy494/gcclegacy494.SlackBuild b/development/gcclegacy494/gcclegacy494.SlackBuild
index af99b1cd71cae..38d8570f56776 100644
--- a/development/gcclegacy494/gcclegacy494.SlackBuild
+++ b/development/gcclegacy494/gcclegacy494.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=gcclegacy494
VERSION=${VERSION:-4.9.4}
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
INSTLOC=${INSTLOC:-/opt/$PRGNAM}
@@ -118,12 +118,15 @@ find -L . \
cp -v gcc/Makefile.in{,.orig}
sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig > gcc/Makefile.in
-# Apply patches if we are compiling against glibc 2.26
-if [ "$(ldd --version | head -1)" = 'ldd (GNU libc) 2.26' ]; then
+# Apply patches if we are compiling against glibc version greater than 2.23
+minor="$(ldd --version | head -1 | sed -e 's/.*2\.//')"
+if [ "$minor" -gt "23" ]; then
patch -p1 -i "$CWD/942-asan-fix-missing-include-signal-h.patch"
patch -p1 -i "$CWD/943-Use-ucontext_t-not-struct-ucontext-in-linux-unwind.h.patch"
patch -p1 -i "$CWD/944-sanitizer-linux.patch"
- export glibcxx_cv_c99_math=yes
+ if [ "$minor" -ge "26" ]; then
+ export glibcxx_cv_c99_math=yes
+ fi
fi
rm -rf $TMP/objdir