summaryrefslogtreecommitdiffstats
path: root/source/l/glibc/glibc.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/glibc/glibc.SlackBuild')
-rwxr-xr-xsource/l/glibc/glibc.SlackBuild8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/l/glibc/glibc.SlackBuild b/source/l/glibc/glibc.SlackBuild
index 0623cd5ce..acaadbeae 100755
--- a/source/l/glibc/glibc.SlackBuild
+++ b/source/l/glibc/glibc.SlackBuild
@@ -54,6 +54,13 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
exit 0
fi
+# Work around -Werror failure with gcc8:
+if gcc --version | grep -wq 8.1.1 ; then
+ if [ "$VERSION" = "2.27" ]; then
+ WERROR="--disable-werror"
+ fi
+fi
+
# I'll break this out as an option for fun :-)
case $ARCH in
i386)
@@ -226,6 +233,7 @@ CFLAGS="-g $OPTIMIZ" \
--enable-obsolete-rpc \
--enable-profile \
$DISABLE_NSCD \
+ $WERROR \
--infodir=/usr/info \
--mandir=/usr/man \
--with-tls \