Skip to content

Commit

Permalink
jbigkit: fix substituteInPlace
Browse files Browse the repository at this point in the history
  • Loading branch information
LnL7 committed Sep 11, 2017
1 parent 7b00a6e commit 2509b62
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

1 comment on commit 2509b62

@bjornfor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps a generic CC = $CC replacement could work for all systems?

Please sign in to comment.