aboutsummaryrefslogtreecommitdiff
path: root/development/gcclegacy494
diff options
context:
space:
mode:
Diffstat (limited to 'development/gcclegacy494')
-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