diff options
Diffstat (limited to 'nscd/Makefile')
-rw-r--r-- | nscd/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nscd/Makefile b/nscd/Makefile index 21657ab..9c98018 100644 --- a/nscd/Makefile +++ b/nscd/Makefile @@ -119,7 +119,9 @@ CFLAGS-initgrcache.c += $(nscd-cflags) CFLAGS-gai.c += $(nscd-cflags) ifeq (yesyes,$(have-fpie)$(build-shared)) +ifeq (yes,$(have-z-relro)) relro-LDFLAGS += -Wl,-z,now +endif $(objpfx)nscd: $(addprefix $(objpfx),$(nscd-modules:=.o)) $(LINK.o) -pie -Wl,-O1 $(nscd-cflags) \ |