ocamlPackages.gd4o: Support cross-compilation

Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
This commit is contained in:
Et7f3 2023-01-25 14:17:15 +01:00 committed by GitHub
parent a5ffa79932
commit fd1a6a6672
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,9 +12,9 @@ stdenv.mkDerivation rec {
buildInputs = [ ocaml findlib libjpeg libpng ];
propagatedBuildInputs = [ gd zlib freetype ];
prePatch = ''
substituteInPlace Makefile --replace gcc cc
'';
makeFlags = [
"CC=${stdenv.cc.targetPrefix}cc"
];
preInstall = ''
mkdir -p $OCAMLFIND_DESTDIR/stublibs