aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2014-12-10 18:45:03 +0000
committerJoseph Myers <joseph@codesourcery.com>2014-12-10 18:45:03 +0000
commit2b89bce91e3c7c6113c3d8d3a52f87cafeafdfbf (patch)
tree75f48db7c48b0784590a76f46f5f7cbf40ff5637 /sysdeps/unix
parent07008f7d6ae9a75228d370c84d20e84616543ec0 (diff)
downloadglibc-2b89bce91e3c7c6113c3d8d3a52f87cafeafdfbf.tar
glibc-2b89bce91e3c7c6113c3d8d3a52f87cafeafdfbf.tar.gz
glibc-2b89bce91e3c7c6113c3d8d3a52f87cafeafdfbf.tar.bz2
glibc-2b89bce91e3c7c6113c3d8d3a52f87cafeafdfbf.zip
Fix MIPS sigaction build.
Building MIPS sigaction (for ABIs other than o32) fails because of "'restore_rt' used but never defined", arising from static functions being defined in asms and referred to from C code. There is no corresponding -W option for that warning, so this patch uses -Wno-error for building sigaction.c. * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) == signal] (CFLAGS-sigaction.c): New variable. [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/mips/mips64/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/mips/mips64/Makefile b/sysdeps/unix/sysv/linux/mips/mips64/Makefile
index 0a37c5b9b4..b4fb190bba 100644
--- a/sysdeps/unix/sysv/linux/mips/mips64/Makefile
+++ b/sysdeps/unix/sysv/linux/mips/mips64/Makefile
@@ -7,3 +7,15 @@ ifeq ($(subdir),nptl)
CFLAGS-recv.c += -fexceptions
CFLAGS-send.c += -fexceptions
endif
+
+ifeq ($(subdir),signal)
+# sigaction.c defines static functions in asms and refers to them from
+# C code, resulting in "'restore_rt' used but never defined" (which
+# has no corresponding warning option to allow it to be disabled with
+# diagnostic pragmas).
+CFLAGS-sigaction.c += -Wno-error
+endif
+
+ifeq ($(subdir),nptl)
+CFLAGS-sigaction.c += -Wno-error
+endif