ocamlPackages.gd4o: Support cross-compilation
Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
This commit is contained in:
parent
a5ffa79932
commit
fd1a6a6672
|
@ -12,9 +12,9 @@ stdenv.mkDerivation rec {
|
||||||
buildInputs = [ ocaml findlib libjpeg libpng ];
|
buildInputs = [ ocaml findlib libjpeg libpng ];
|
||||||
propagatedBuildInputs = [ gd zlib freetype ];
|
propagatedBuildInputs = [ gd zlib freetype ];
|
||||||
|
|
||||||
prePatch = ''
|
makeFlags = [
|
||||||
substituteInPlace Makefile --replace gcc cc
|
"CC=${stdenv.cc.targetPrefix}cc"
|
||||||
'';
|
];
|
||||||
|
|
||||||
preInstall = ''
|
preInstall = ''
|
||||||
mkdir -p $OCAMLFIND_DESTDIR/stublibs
|
mkdir -p $OCAMLFIND_DESTDIR/stublibs
|
||||||
|
|
Loading…
Reference in a new issue