mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 14:31:02 +02:00
Merge pull request #995 from marineam/update_engine
libchrome+update_engine: fix build with GCC 4.8
This commit is contained in:
commit
f837150b8e
@ -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
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user