jbigkit: Needs fPIC for library support

This commit is contained in:
William A. Kennington III 2015-03-27 15:34:06 -07:00
parent 0cb847652e
commit c8021333d4

View file

@ -8,6 +8,10 @@ stdenv.mkDerivation rec {
sha256 = "0cnrcdr1dwp7h7m0a56qw09bv08krb37mpf7cml5sjdgpyv0cwfy";
};
postPatch = ''
sed -i 's/^\(CFLAGS.*\)$/\1 -fPIC/' Makefile
'';
installPhase = ''
install -D -m644 libjbig/libjbig.a $out/lib/libjbig.a
install -D -m644 libjbig/libjbig85.a $out/lib/libjbig85.a