nautilus: fix gcc6 build

This commit is contained in:
Juergen Buchmueller 2016-09-17 16:34:38 +02:00
parent 144664d7f4
commit f5297de7cd

View file

@ -1,7 +1,7 @@
# Template file for 'nautilus'
pkgname=nautilus
version=3.18.5
revision=1
revision=2
build_style=gnu-configure
configure_args="--disable-update-mimedb --disable-debug
--disable-schemas-compile --disable-nst-extension $(vopt_enable gir introspection)"
@ -21,6 +21,11 @@ if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
_gccver=$(gcc --version | awk '/^gcc \(GCC\)/ { print $3 }')
if [ "${_gccver%%.*}" -gt 5 ]; then
CFLAGS="-Wno-error=format-nonliteral"
fi
libnautilus_package() {
short_desc+=" - shared libraries"
pkg_install() {