mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-13 13:37:38 +08:00
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.
This commit is contained in:
parent
07008f7d6a
commit
2b89bce91e
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user