aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm/rpm/rpm-disable-auto-stack-protector.patch
blob: 124606c0d1704a971479e68e3e91ec15a6578115 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Make security switches manual settings

RPM checks for the availability of the stack protector switch and
transactional-memory support.  If supported it unconditionally
enables the compiler options which can cause errors if the support has
not been built into the compiler.

Upstream-Status: Inappropriate [configuration]

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>

Index: rpm-5.4.15/configure.ac
===================================================================
--- rpm-5.4.15.orig/configure.ac
+++ rpm-5.4.15/configure.ac
@@ -425,7 +425,7 @@ dnl #  rpm_CFLAGS_ADD([-fstack-arrays],[
 dnl # build RPM instrumented for extra optimization/security (GCC only)
 dnl # --- other optimizations
   rpm_CFLAGS_ADD([-fexceptions], [RPM_CFLAGS])
-  rpm_CFLAGS_ADD([-D_FORTIFY_SOURCE=2 -fstack-protector], [RPM_CFLAGS])
+dnl  rpm_CFLAGS_ADD([-D_FORTIFY_SOURCE=2 -fstack-protector], [RPM_CFLAGS])
 dnl #  rpm_CFLAGS_ADD([-fstack-protector-all],[RPM_CFLAGS])
 
      if test \( ".`$CC --version 2>&1 | grep 'GCC'`" != . \); then