]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix MIPS sigaction build.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 10 Dec 2014 18:45:03 +0000 (18:45 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 10 Dec 2014 18:45:03 +0000 (18:45 +0000)
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.

ChangeLog
sysdeps/unix/sysv/linux/mips/mips64/Makefile

index fdae8a566e3084125bf55df09e37ecb4dc8dc0fb..a99abbccb5bee2c52cb5a5189d43e1ab00505786 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-12-10  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/mips/mips64/Makefile
+       [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
+       [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
+
 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
            Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
 
index 0a37c5b9b467cb38851dec01812d499f3b392df3..b4fb190bba4e359a5fe88b8787a65c7991f67016 100644 (file)
@@ -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