From: Anders Kaseorg Date: Thu, 8 May 2008 13:22:59 +0000 (-0400) Subject: Use $(CC) for linktest. X-Git-Tag: 1.6^0 X-Git-Url: http://andersk.mit.edu/gitweb/nss_nonlocal.git/commitdiff_plain/6278f2a308b57224f60c6379e53cc03e02c56ea3 Use $(CC) for linktest. Signed-off-by: Anders Kaseorg --- diff --git a/Makefile b/Makefile index 10d1306..19c766e 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,6 @@ libdir = $(exec_prefix)/lib INSTALL = install CC = gcc CFLAGS = -O2 -Wall -LD = ld ALL_CFLAGS = $(CFLAGS) -fPIC ALL_LDFLAGS = $(LDFLAGS) -shared -Wl,-x @@ -24,7 +23,7 @@ nonlocal-group.o: nonlocal-group.c nsswitch-internal.h nonlocal.h nonlocal-shadow.o: nonlocal-shadow.c nsswitch-internal.h nonlocal.h linktest: libnss_nonlocal.so.2 - $(LD) --entry=0 -o /dev/null $^ + $(CC) $(LDFLAGS) -nostdlib -Wl,--entry=0 -o /dev/null $^ install: libnss_nonlocal.so.2 $(INSTALL) -d $(DESTDIR)$(libdir)