anjuta: fix gcc6 build

This commit is contained in:
Juergen Buchmueller 2016-10-03 23:50:54 +02:00
parent abebffcaaa
commit ef048c1727

View File

@ -1,7 +1,7 @@
# Template file for 'anjuta'
pkgname=anjuta
version=3.22.0
revision=1
revision=2
build_style=gnu-configure
build_options="gir"
configure_args="$(vopt_enable gir introspection)"
@ -26,6 +26,14 @@ if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
CFLAGS="-O2 -Wno-deprecated-declarations"
_gccver=$(gcc --version | awk '/^gcc \(GCC\)/ { print $3 }')
if [ "${_gccver%%.*}" -gt 5 ]; then
CFLAGS+=" -Wno-error=format-nonliteral -Wno-error=format-y2k"
fi
CXXFLAGS="${CFLAGS}"
anjuta-devel_package() {
replaces="anjuta-docs>=0"
short_desc+=" - development files"