Merge pull request #995 from marineam/update_engine

libchrome+update_engine: fix build with GCC 4.8
This commit is contained in:
Michael Marineau 2014-12-10 12:04:31 -08:00
commit f837150b8e
4 changed files with 10 additions and 0 deletions

View File

@ -50,6 +50,11 @@ src_configure() {
cros-debug-add-NDEBUG
export CCFLAGS="$CFLAGS"
# Fix builds with GCC 4.8
if [[ $(gcc-major-version) -ge 4 && $(gcc-minor-version) -ge 8 ]]; then
CCFLAGS+=" -Wno-unused-local-typedefs"
fi
mkdir -p third_party/libevent
echo '#include <event.h>' > third_party/libevent/event.h
}

View File

@ -54,6 +54,11 @@ src_compile() {
append-ldflags -nopie
fi
# Fix builds with GCC 4.8
if [[ $(gcc-major-version) -ge 4 && $(gcc-minor-version) -ge 8 ]]; then
append-flags -Wno-unused-local-typedefs
fi
tc-export CC CXX AR RANLIB LD NM PKG_CONFIG
cros-debug-add-NDEBUG
export CCFLAGS="$CFLAGS"