2010-11-17 10:42:25 +01:00
|
|
|
From d1a49cccf99373293a88f5bce74857d5bb813e46 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Thorsten Kukuk <kukuk@suse.de>
|
|
|
|
Date: Tue, 17 Aug 2010 09:21:22 +0200
|
|
|
|
Subject: [PATCH 7/7] compile su with -fpie
|
|
|
|
|
|
|
|
---
|
|
|
|
lib/Makefile.am | 2 +-
|
|
|
|
src/Makefile.am | 5 +++++
|
2013-01-22 15:08:43 +01:00
|
|
|
2 files changed, 6 insertions(+), 1 deletion(-)
|
2010-11-17 10:42:25 +01:00
|
|
|
|
2012-04-23 09:12:18 +02:00
|
|
|
Index: lib/Makefile.am
|
|
|
|
===================================================================
|
2013-01-22 15:08:43 +01:00
|
|
|
--- lib/Makefile.am.orig
|
|
|
|
+++ lib/Makefile.am
|
2012-04-23 09:12:18 +02:00
|
|
|
@@ -28,7 +28,7 @@ noinst_LIBRARIES =
|
2010-11-17 10:42:25 +01:00
|
|
|
|
|
|
|
include gnulib.mk
|
|
|
|
|
|
|
|
-AM_CFLAGS += $(GNULIB_WARN_CFLAGS) $(WERROR_CFLAGS)
|
|
|
|
+AM_CFLAGS += $(GNULIB_WARN_CFLAGS) $(WERROR_CFLAGS) -fpie
|
|
|
|
|
|
|
|
libcoreutils_a_SOURCES += \
|
|
|
|
buffer-lcm.c buffer-lcm.h
|
2012-04-23 09:12:18 +02:00
|
|
|
Index: src/Makefile.am
|
|
|
|
===================================================================
|
2013-01-22 15:08:43 +01:00
|
|
|
--- src/Makefile.am.orig
|
|
|
|
+++ src/Makefile.am
|
2012-04-23 09:12:18 +02:00
|
|
|
@@ -361,6 +361,11 @@ uptime_LDADD += $(GETLOADAVG_LIBS)
|
2010-11-17 10:42:25 +01:00
|
|
|
su_SOURCES = su.c getdef.c
|
|
|
|
su_LDADD += $(LIB_CRYPT) $(PAM_LIBS)
|
|
|
|
|
|
|
|
+su_CFLAGS = -fpie
|
|
|
|
+su_LDFLAGS = -pie
|
|
|
|
+timeout_CFLAGS = -fpie
|
|
|
|
+timeout_LDFLAGS = -pie
|
|
|
|
+
|
|
|
|
# for various ACL functions
|
|
|
|
copy_LDADD += $(LIB_ACL)
|
|
|
|
ls_LDADD += $(LIB_ACL)
|