mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
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