jbigkit: patch makefiles to use Clang when needed

This commit is contained in:
Spencer Whitt 2015-03-31 17:22:23 -04:00
parent cce00353d0
commit 1924e48253
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,9 @@ stdenv.mkDerivation rec {
postPatch = ''
sed -i 's/^\(CFLAGS.*\)$/\1 -fPIC/' Makefile
'' + stdenv.lib.optionalString (stdenv.cc.cc.isClang or false) ''
substituteInPlace Makefile libjbig/Makefile pbmtools/Makefile \
--replace "CC = gcc" "CC = clang"
'';
installPhase = ''