When using compilers without -fpie support, also link with -lselinux
authordrepper <drepper>
Thu, 14 Oct 2004 20:54:27 +0000 (20:54 +0000)
committerdrepper <drepper>
Thu, 14 Oct 2004 20:54:27 +0000 (20:54 +0000)
if necessary.

nscd/Makefile

index 70a3519..b21edc2 100644 (file)
@@ -123,10 +123,10 @@ $(objpfx)nscd_nischeck: $(objpfx)nscd_nischeck.o
 
 ifeq ($(build-shared),yes)
 $(objpfx)nscd: $(common-objpfx)rt/librt.so $(shared-thread-library) \
-              $(common-objpfx)nis/libnsl.so
+              $(common-objpfx)nis/libnsl.so $(selinux-LIBS)
 $(objpfx)nscd_nischeck: $(common-objpfx)nis/libnsl.so
 else
 $(objpfx)nscd: $(common-objpfx)rt/librt.a $(static-thread-library) \
-              $(common-objpfx)nis/libnsl.a
+              $(common-objpfx)nis/libnsl.a $(selinux-LIBS)
 $(objpfx)nscd_nischeck: $(common-objpfx)nis/libnsl.a
 endif