jbigkit: patch makefiles to use Clang when needed
This commit is contained in:
parent
cce00353d0
commit
1924e48253
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in New Issue