jbigkit: fix substituteInPlace

This commit is contained in:
Daiderd Jordan 2017-09-12 00:15:12 +02:00
parent 7b00a6ef15
commit 2509b629d7
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -11,8 +11,9 @@ stdenv.mkDerivation rec {
postPatch = ''
sed -i 's/^\(CFLAGS.*\)$/\1 -fPIC/' Makefile
'' + stdenv.lib.optionalString stdenv.cc.isClang ''
substituteInPlace Makefile libjbig/Makefile pbmtools/Makefile \
--replace "CC = gcc" "CC = clang"
for f in Makefile libjbig/Makefile pbmtools/Makefile; do
substituteInPlace $f --replace "CC = gcc" "CC = clang"
done
'';
installPhase = ''