From: Joseph Myers Date: Wed, 10 Dec 2014 18:45:03 +0000 (+0000) Subject: Fix MIPS sigaction build. X-Git-Tag: glibc-2.21~262 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b89bce91e3c7c6113c3d8d3a52f87cafeafdfbf;p=thirdparty%2Fglibc.git 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. --- diff --git a/ChangeLog b/ChangeLog index fdae8a566e3..a99abbccb5b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2014-12-10 Joseph Myers + + * 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 Adhemerval Zanella diff --git a/sysdeps/unix/sysv/linux/mips/mips64/Makefile b/sysdeps/unix/sysv/linux/mips/mips64/Makefile index 0a37c5b9b46..b4fb190bba4 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