elfutils: fix gcc7 build

See #8842
This commit is contained in:
Jürgen Buchmüller 2017-11-08 09:44:02 +01:00
parent 23d4a60b1b
commit c80dc0d02c

View File

@ -13,11 +13,7 @@ homepage="https://sourceware.org/elfutils/"
distfiles="https://sourceware.org/${pkgname}/ftp/${version}/${pkgname}-${version}.tar.bz2" distfiles="https://sourceware.org/${pkgname}/ftp/${version}/${pkgname}-${version}.tar.bz2"
checksum=1f844775576b79bdc9f9c717a50058d08620323c1e935458223a12f249c9e066 checksum=1f844775576b79bdc9f9c717a50058d08620323c1e935458223a12f249c9e066
# Suppress certain warnings to not fail for -Werror CFLAGS="-Wno-error"
CFLAGS="-Wno-unused-result -Wno-format-nonliteral"
if [ ${XBPS_GCC_VERSION_MAJOR} -gt 5 ]; then
CFLAGS+=" -Wno-null-dereference"
fi
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" argp-standalone musl-fts-devel musl-obstack" ;; *-musl) makedepends+=" argp-standalone musl-fts-devel musl-obstack" ;;