From da62f81bdd23bb5095cd54c0b34ae6d5a93df69e Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Fri, 13 May 2011 23:31:43 -0400 Subject: Add support for generated PIE link rules --- login/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'login') diff --git a/login/Makefile b/login/Makefile index beb2a5c3a8..46bde13a83 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. -- cgit 1.4.1