Skip to content

Commit

Permalink
jbigkit: fix substituteInPlace
Browse files Browse the repository at this point in the history
(cherry picked from commit 2509b62)
  • Loading branch information
LnL7 committed Sep 11, 2017
1 parent f155c98 commit 5f16545
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/development/libraries/jbigkit/default.nix
Expand Up @@ -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 = ''
Expand Down

0 comments on commit 5f16545

Please sign in to comment.