Index: lib/Makefile.am =================================================================== --- lib/Makefile.am.orig +++ lib/Makefile.am @@ -20,6 +20,7 @@ include gnulib.mk AM_CFLAGS = $(WARNING_CFLAGS) $(WERROR_CFLAGS) +AM_CFLAGS += -fpie noinst_PROGRAMS = t-fpending LDADD = $(noinst_LIBRARIES) Index: src/Makefile.am =================================================================== --- src/Makefile.am.orig +++ src/Makefile.am @@ -104,6 +104,8 @@ uptime_LDADD = $(LDADD) $(POW_LIB) $(GET su_SOURCES = su.c getdef.c su_LDADD = $(LDADD) $(LIB_CRYPT) $(PAM_LIBS) +su_CFLAGS = -fpie +su_LDFLAGS = -pie dir_LDADD += $(LIB_ACL) ls_LDADD += $(LIB_ACL)