elfutils: fix gcc6 build

This commit is contained in:
Juergen Buchmueller 2016-09-27 09:35:03 +02:00
parent ffd50de280
commit 0b132e81b8

View file

@ -15,6 +15,10 @@ checksum=3f300087c42b6f35591163b48246b4098ce39c4c6f5d55a83023c903c5776553
# Suppress certain warnings to not fail for -Werror
CFLAGS="-Wno-unused-result -Wno-format-nonliteral"
_gccver=$(gcc --version | awk '/^gcc \(GCC\)/ { print $3 }')
if [ "${_gccver%%.*}" -gt 5 ]; then
CFLAGS+=" -Wno-null-dereference"
fi
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" argp-standalone musl-fts-devel musl-obstack" ;;