summaryrefslogtreecommitdiff
path: root/nscd
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-02-16 10:50:16 +0000
committerRoland McGrath <roland@gnu.org>2005-02-16 10:50:16 +0000
commit81f07283d388e7c396d5b37e1b5d2db83b39f177 (patch)
tree76f857220224d653468bc62fe6d85480edd71532 /nscd
parentc7e9fd976f43083e4aa5c8c756f0d13176cba495 (diff)
2005-01-17 Roland McGrath <roland@redhat.com>
[BZ #745] * nscd/Makefile (LDLIBS-nscd): New variable. ($(objpfx)nscd): Use that instead of selinux-LIBS.
Diffstat (limited to 'nscd')
-rw-r--r--nscd/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/nscd/Makefile b/nscd/Makefile
index 70a35198c2..23feca4273 100644
--- a/nscd/Makefile
+++ b/nscd/Makefile
@@ -56,6 +56,8 @@ nscd-modules += selinux
selinux-LIBS := -lselinux
endif
+LDLIBS-nscd = $(selinux-LIBS)
+
distribute := nscd.h nscd-client.h dbg_log.h \
$(addsuffix .c, $(filter-out xmalloc, $(nscd-modules))) \
nscd_nischeck.c nscd.conf nscd.init nscd_proto.h \
@@ -110,7 +112,7 @@ $(objpfx)nscd: $(addprefix $(objpfx),$(nscd-modules:=.o))
$(extra-B-$(@F:lib%.so=%).so) $(load-map-file) \
$(LDFLAGS) $(LDFLAGS-$(@F)) \
-L$(subst :, -L,$(rpath-link)) -Wl,-rpath-link=$(rpath-link) \
- -o $@ $^ $(selinux-LIBS) $(common-objpfx)libc_nonshared.a
+ -o $@ $^ $(LDLIBS-nscd) $(common-objpfx)libc_nonshared.a
endif
# This makes sure -DNOT_IN_libc is passed for all these modules.