2006-07-04 16:58:59 +00:00
|
|
|
--- cups-1.2.1/Makedefs.in.relro 2006-07-04 17:52:05.000000000 +0100
|
|
|
|
+++ cups-1.2.1/Makedefs.in 2006-07-04 17:52:54.000000000 +0100
|
|
|
|
@@ -132,7 +132,7 @@
|
|
|
|
IMGLIBS = @IMGLIBS@
|
2006-04-28 13:09:58 +00:00
|
|
|
IMGFILTERS = @IMGFILTERS@
|
2006-07-04 16:58:59 +00:00
|
|
|
LDFLAGS = -L../cups -L../filter $(ARCHFLAGS) \
|
2006-04-28 13:09:58 +00:00
|
|
|
- @LDFLAGS@ @PIEFLAGS@ $(OPTIM)
|
|
|
|
+ @LDFLAGS@ @RELROFLAG@ @PIEFLAGS@ $(OPTIM)
|
|
|
|
LINKCUPS = @LINKCUPS@ $(SSLLIBS)
|
|
|
|
LINKCUPSIMAGE = @LINKCUPSIMAGE@
|
|
|
|
LIBS = $(LINKCUPS) $(COMMONLIBS)
|
2006-07-04 16:58:59 +00:00
|
|
|
--- cups-1.2.1/config-scripts/cups-compiler.m4.relro 2006-07-04 17:52:05.000000000 +0100
|
|
|
|
+++ cups-1.2.1/config-scripts/cups-compiler.m4 2006-07-04 17:52:05.000000000 +0100
|
|
|
|
@@ -89,6 +89,9 @@
|
2006-04-28 13:09:58 +00:00
|
|
|
CXXLIBS=""
|
|
|
|
AC_SUBST(CXXLIBS)
|
2005-12-19 17:31:48 +00:00
|
|
|
|
2006-04-28 13:09:58 +00:00
|
|
|
+RELROFLAG=""
|
|
|
|
+AC_SUBST(RELROFLAG)
|
|
|
|
+
|
|
|
|
PIEFLAGS=""
|
|
|
|
AC_SUBST(PIEFLAGS)
|
2005-12-19 17:31:48 +00:00
|
|
|
|
2006-07-04 16:58:59 +00:00
|
|
|
@@ -108,6 +111,12 @@
|
2005-12-19 17:31:48 +00:00
|
|
|
|
2006-04-28 13:09:58 +00:00
|
|
|
case $uname in
|
|
|
|
Linux*)
|
|
|
|
+ RELROFLAG="-Wl,-z,relro"
|
|
|
|
+ ;;
|
|
|
|
+ esac
|
|
|
|
+
|
|
|
|
+ case $uname in
|
|
|
|
+ Linux*)
|
|
|
|
if test x$enable_pie = xyes; then
|
2006-07-04 16:58:59 +00:00
|
|
|
PIEFLAGS="-pie -fPIE"
|
2006-04-28 13:09:58 +00:00
|
|
|
fi
|