anjuta: fix gcc6 build
This commit is contained in:
parent
abebffcaaa
commit
ef048c1727
@ -1,7 +1,7 @@
|
|||||||
# Template file for 'anjuta'
|
# Template file for 'anjuta'
|
||||||
pkgname=anjuta
|
pkgname=anjuta
|
||||||
version=3.22.0
|
version=3.22.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
build_options="gir"
|
build_options="gir"
|
||||||
configure_args="$(vopt_enable gir introspection)"
|
configure_args="$(vopt_enable gir introspection)"
|
||||||
@ -26,6 +26,14 @@ if [ -z "$CROSS_BUILD" ]; then
|
|||||||
build_options_default="gir"
|
build_options_default="gir"
|
||||||
fi
|
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() {
|
anjuta-devel_package() {
|
||||||
replaces="anjuta-docs>=0"
|
replaces="anjuta-docs>=0"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user