jbigkit: fix substituteInPlace
This commit is contained in:
parent
7b00a6ef15
commit
2509b629d7
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user