mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-14 16:37:01 +02:00
fix(sys-apps/bootcache): Fix building with GCC 4.6
Swap -fstack-protector-strong for -fstack-protector-all
This commit is contained in:
parent
3b4e8c55c5
commit
4b12aba4bd
@ -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() {
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user