]> andersk Git - nss_nonlocal.git/commitdiff
Use $(CC) for linktest. 1.6
authorAnders Kaseorg <andersk@mit.edu>
Thu, 8 May 2008 13:22:59 +0000 (09:22 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Sun, 27 Jul 2008 13:20:52 +0000 (09:20 -0400)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Makefile

index 10d13068f96e28d8c707dca811e341b49c942e46..19c766efa47444f1268e674e882d3d9531c287bc 100644 (file)
--- 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)
This page took 0.913202 seconds and 5 git commands to generate.