Fix failure of elf/tst-audit2 when compiled with GCC-5

This commit is contained in:
Andreas Schwab 2015-01-22 17:54:21 +01:00
parent bdf1ff052a
commit 5122580325
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2015-02-23 Andreas Schwab <schwab@suse.de>
* elf/Makefile (CFLAGS-tst-audit2.c): Define.
2015-02-22 Paul Pluzhnikov <ppluzhnikov@google.com>
[BZ #17269]

View File

@ -1017,6 +1017,8 @@ $(objpfx)tst-audit1.out: $(objpfx)tst-auditmod1.so
tst-audit1-ENV = LD_AUDIT=$(objpfx)tst-auditmod1.so
$(objpfx)tst-audit2.out: $(objpfx)tst-auditmod1.so
# Prevent GCC-5 from translating a malloc/memset pair into calloc
CFLAGS-tst-audit2.c += -fno-builtin
tst-audit2-ENV = LD_AUDIT=$(objpfx)tst-auditmod1.so
$(objpfx)tst-audit9: $(libdl)