From 941d381361315462409ec87facfe82e79c52f86c Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Sun, 18 Sep 2016 15:00:08 +0200 Subject: [PATCH] espeak: fix gcc6 build --- srcpkgs/espeak/template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/srcpkgs/espeak/template b/srcpkgs/espeak/template index 9abab4e0ba..8897739555 100644 --- a/srcpkgs/espeak/template +++ b/srcpkgs/espeak/template @@ -1,7 +1,7 @@ # Template file for 'espeak' pkgname="espeak" version="1.48.04" -revision=3 +revision=4 short_desc="Text to Speech engine" maintainer="Martin Riese " license="GPL-3" @@ -14,6 +14,11 @@ build_wrksrc="src" checksum="bf9a17673adffcc28ff7ea18764f06136547e97bbd9edf2ec612f09b207f0659" build_style="gnu-makefile" +_gccver=$(gcc --version | awk '/^gcc \(GCC\)/ { print $3 }') +if [ "${_gccver%%.*}" -gt 5 ]; then + CXXFLAGS="-Wno-error=narrowing" +fi + pre_configure() { cp portaudio19.h portaudio.h }