diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2009-06-16 09:19:59 -0700 |
---|---|---|
committer | Andreas Schwab <schwab@redhat.com> | 2009-08-04 10:57:34 +0200 |
commit | a584fc6a6b81183ed6ce1724237c6744cdd6559e (patch) | |
tree | d15cd13afad128b10f76025750cd7779e978a5fd /nscd/Makefile | |
parent | c97164f05ba8fa5d2ebf30f1c2de083bc1ead1e1 (diff) | |
download | glibc-a584fc6a6b81183ed6ce1724237c6744cdd6559e.tar.gz glibc-a584fc6a6b81183ed6ce1724237c6744cdd6559e.tar.xz glibc-a584fc6a6b81183ed6ce1724237c6744cdd6559e.zip |
Consolidate PIE linking Makefile rules.
(cherry picked from commit 435aa54b3b9c1c87498e8bb3831394fd42220fa7)
Diffstat (limited to 'nscd/Makefile')
-rw-r--r-- | nscd/Makefile | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/nscd/Makefile b/nscd/Makefile index 364ddfe8dd..4abae8c661 100644 --- a/nscd/Makefile +++ b/nscd/Makefile @@ -1,5 +1,4 @@ -# Copyright (C) 1998,2000,2002,2003,2004,2005,2006,2007,2008 -# Free Software Foundation, Inc. +# Copyright (C) 1998,2000,2002-2009 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 @@ -128,13 +127,7 @@ ifeq (yesyes,$(have-fpie)$(build-shared)) relro-LDFLAGS += -Wl,-z,now $(objpfx)nscd: $(addprefix $(objpfx),$(nscd-modules:=.o)) - $(LINK.o) -pie -Wl,-O1 $(nscd-cflags) \ - $(sysdep-LDFLAGS) $(config-LDFLAGS) $(relro-LDFLAGS) \ - $(extra-B-$(@F:lib%.so=%).so) -B$(csu-objpfx) \ - $(extra-B-$(@F:lib%.so=%).so) $(load-map-file) \ - $(LDFLAGS) $(LDFLAGS-$(@F)) \ - -L$(subst :, -L,$(rpath-link)) -Wl,-rpath-link=$(rpath-link) \ - -o $@ $^ $(LDLIBS-nscd) $(common-objpfx)libc_nonshared.a + $(+link-pie) endif # This makes sure -DNOT_IN_libc is passed for all these modules. |