jbigkit: fix substituteInPlace
This commit is contained in:
parent
7b00a6ef15
commit
2509b629d7
@ -11,8 +11,9 @@ stdenv.mkDerivation rec {
|
|||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i 's/^\(CFLAGS.*\)$/\1 -fPIC/' Makefile
|
sed -i 's/^\(CFLAGS.*\)$/\1 -fPIC/' Makefile
|
||||||
'' + stdenv.lib.optionalString stdenv.cc.isClang ''
|
'' + stdenv.lib.optionalString stdenv.cc.isClang ''
|
||||||
substituteInPlace Makefile libjbig/Makefile pbmtools/Makefile \
|
for f in Makefile libjbig/Makefile pbmtools/Makefile; do
|
||||||
--replace "CC = gcc" "CC = clang"
|
substituteInPlace $f --replace "CC = gcc" "CC = clang"
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user