aboutsummaryrefslogtreecommitdiff
path: root/login
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2011-05-13 23:31:43 -0400
committerUlrich Drepper <drepper@gmail.com>2011-05-13 23:31:43 -0400
commitda62f81bdd23bb5095cd54c0b34ae6d5a93df69e (patch)
tree1045b2d50648b4b24cfbcda07c3929bcad2da4f3 /login
parent20030ae6d7e7187d7caf1b23c4aa5471fcf56d47 (diff)
downloadglibc-da62f81bdd23bb5095cd54c0b34ae6d5a93df69e.zip
glibc-da62f81bdd23bb5095cd54c0b34ae6d5a93df69e.tar.gz
glibc-da62f81bdd23bb5095cd54c0b34ae6d5a93df69e.tar.bz2
Add support for generated PIE link rules
Diffstat (limited to 'login')
-rw-r--r--login/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/login/Makefile b/login/Makefile
index beb2a5c..46bde13 100644
--- a/login/Makefile
+++ b/login/Makefile
@@ -30,6 +30,7 @@ routines := getutent getutent_r getutid getutline getutid_r getutline_r \
CFLAGS-grantpt.c = -DLIBEXECDIR='"$(libexecdir)"'
others = utmpdump pt_chown
+others-pie = pt_chown
install-others-programs = $(inst_libexecdir)/pt_chown
distribute := utmp-private.h utmp-equal.h pty-private.h
@@ -67,9 +68,6 @@ CFLAGS-pt_chown.c = $(pt_chown-cflags)
LDLIBS-pt_chown = $(libcap)
ifeq (yesyes,$(have-fpie)$(build-shared))
LDFLAGS-pt_chown = -Wl,-z,now
-
-$(objpfx)pt_chown: $(objpfx)pt_chown.o
- $(+link-pie)
endif
# pt_chown needs to be setuid root.