Merge pull request #70 from marineam/gcc46

fix(coreos-base/verity): Fix use of gcc flag not available in 4.6
This commit is contained in:
Michael Marineau 2013-07-11 12:32:58 -07:00
commit a84de1b277
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff --git a/common.mk b/common.mk
index 058e906..9d4158a 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 -Wformat=2

View File

@ -7,7 +7,7 @@ CROS_WORKON_TREE="a54ff06d13ee681a7cb660ed14c51dcd8ef5ffdf"
CROS_WORKON_PROJECT="chromiumos/platform/dm-verity"
CROS_WORKON_OUTOFTREE_BUILD=1
inherit cros-workon cros-au
inherit cros-workon cros-au eutils
DESCRIPTION="File system integrity image generator for Chromium OS"
HOMEPAGE="http://www.chromium.org/"
@ -33,6 +33,9 @@ DEPEND="${RDEPEND}
src_prepare() {
cros-workon_src_prepare
# temporary fix for gcc 4.6 compatibility
# we don't use verity (yet) so don't bother forking the git repo yet...
epatch "${FILESDIR}/dm-verity-gcc-4.6-stack-protector.patch"
}
src_configure() {