espeak-classic: fix build with gcc6

This commit is contained in:
Samuel Leathers
2017-09-01 10:46:48 -04:00
parent b2e7e231ec
commit 6c1364712a
2 changed files with 18 additions and 1 deletions
+5 -1
View File
@@ -10,7 +10,11 @@ stdenv.mkDerivation rec {
buildInputs = [ unzip portaudio ];
patchPhase = ''
patches = [
./gcc6.patch
];
prePatch = ''
sed -e s,/bin/ln,ln,g -i src/Makefile
sed -e 's,^CXXFLAGS=-O2,CXXFLAGS=-O2 -D PATH_ESPEAK_DATA=\\\"$(DATADIR)\\\",' -i src/Makefile
'' + (if portaudio.api_version == 19 then ''