From b2fea743ab4992653b013a5317c8b630a0771f0e Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Fri, 28 Oct 2016 14:27:52 -0400 Subject: [PATCH] Fix building tst-linkall-static. The crypt/ directory is not added as part of the sysdep directories. Add it when building tst-linkall-static to include crypt.h. --- ChangeLog | 2 ++ elf/Makefile | 1 + 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6c6caab25d..5847d6b358 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2016-10-28 Carlos O'Donell + * elf/Makefile (CFLAGS-tst-linkall-static): Define. + * math/test-nan-overflow.c: Include stdlib.h for malloc. 2016-10-28 H.J. Lu diff --git a/elf/Makefile b/elf/Makefile index 82c7e0559d..057a19fb2b 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -1280,6 +1280,7 @@ $(objpfx)tst-ldconfig-X.out : tst-ldconfig-X.sh $(objpfx)ldconfig $(objpfx)tst-dlsym-error: $(libdl) +CFLAGS-tst-linkall-static.c = -I../crypt $(objpfx)tst-linkall-static: \ $(common-objpfx)math/libm.a \ $(common-objpfx)crypt/libcrypt.a \