leatherman: fix gcc-8.2.0 build

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-08-09 14:35:40 +02:00
parent ba26863427
commit cede5197d3
No known key found for this signature in database
GPG key ID: 6764EC32352D0647

View file

@ -12,3 +12,7 @@ license="Apache-2.0"
homepage="https://github.com/puppetlabs/leatherman"
distfiles="https://github.com/puppetlabs/leatherman/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=32ccdb21db3ccc326bac255b35fc6c16b2ddbe39bbd5afdddcadc622e2814fc2
if [ "$XBPS_GCC_VERSION_MAJOR" -ge 8 ]; then
CXXFLAGS+=" -Wno-ignored-qualifiers -Wno-class-memaccess -Wno-catch-value"
fi