anjuta: fix gcc6 build
This commit is contained in:
parent
abebffcaaa
commit
ef048c1727
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user