summaryrefslogtreecommitdiff
path: root/libc/nscd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/nscd/Makefile')
-rw-r--r--libc/nscd/Makefile10
1 files changed, 3 insertions, 7 deletions
diff --git a/libc/nscd/Makefile b/libc/nscd/Makefile
index 15c3c7b9f..9e1821546 100644
--- a/libc/nscd/Makefile
+++ b/libc/nscd/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1998,2000,2002-2009 Free Software Foundation, Inc.
+# Copyright (C) 1998,2000,2002-2009,2011 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
@@ -45,9 +45,8 @@ nscd-modules += nis_hash
endif
ifeq ($(have-thread-library),yes)
-ifneq (yesyes,$(have-fpie)$(build-shared))
others-$(OPTION_EGLIBC_INET) += nscd
-endif
+others-pie += nscd
install-sbin-$(OPTION_EGLIBC_INET) += nscd
extra-objs-$(OPTION_EGLIBC_INET) += $(nscd-modules:=.o)
@@ -133,10 +132,7 @@ CFLAGS-res_hconf.c += $(nscd-cflags)
CFLAGS-nis_hash.c += $(nscd-cflags)
ifeq (yesyes,$(have-fpie)$(build-shared))
-relro-LDFLAGS += -Wl,-z,now
-
-$(objpfx)nscd: $(addprefix $(objpfx),$(nscd-modules:=.o))
- $(+link-pie)
+LDFLAGS-nscd = -Wl,-z,now
endif
# This makes sure -DNOT_IN_libc is passed for all these modules.