fix(sys-apps/bootcache): Fix building with GCC 4.6

Swap -fstack-protector-strong for -fstack-protector-all
This commit is contained in:
Michael Marineau 2013-07-17 19:07:53 -04:00
parent 3b4e8c55c5
commit 4b12aba4bd
2 changed files with 15 additions and 1 deletions

View File

@ -8,7 +8,7 @@ CROS_WORKON_TREE="933dc61ef690ca77ad5557123455b289bced1865"
CROS_WORKON_PROJECT="chromiumos/platform/bootcache"
CROS_WORKON_LOCALNAME="../platform/bootcache"
CROS_WORKON_OUTOFTREE_BUILD=1
inherit cros-workon
inherit eutils cros-workon
DESCRIPTION="Utility for creating store for boot cache"
HOMEPAGE="http://git.chromium.org/gitweb/?s=bootcache"
@ -21,6 +21,7 @@ IUSE=""
src_prepare() {
cros-workon_src_prepare
epatch "${FILESDIR}/${P}-fix-fstack-protector.patch"
}
src_configure() {

View File

@ -0,0 +1,13 @@
diff --git a/common.mk b/common.mk
index 7533291..40d4f9d 100644
--- a/common.mk
+++ b/common.mk
@@ -276,7 +276,7 @@ endif
# CXXFLAGS := -mahflag $(CXXFLAGS) # Prepend to the list
# CXXFLAGS := $(filter-out badflag,$(CXXFLAGS)) # Filter out a value
# The same goes for CFLAGS.
-COMMON_CFLAGS-gcc := -fstack-protector-strong -fvisibility=internal -ggdb3 \
+COMMON_CFLAGS-gcc := -fstack-protector-all -fvisibility=internal -ggdb3 \
-Wa,--noexecstack
COMMON_CFLAGS-clang := -fstack-protector-all -fvisibility=hidden -ggdb
COMMON_CFLAGS := -Wall -Werror -fno-strict-aliasing -O1