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
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue