diff --git a/srcpkgs/unison/template b/srcpkgs/unison/template index 8a5f06e0b6f..6f9daf259f2 100644 --- a/srcpkgs/unison/template +++ b/srcpkgs/unison/template @@ -1,7 +1,7 @@ # Template file for 'unison' pkgname=unison version=2.53.4 -revision=1 +revision=2 hostmakedepends="ocaml" short_desc="File-synchronization tool" maintainer="Andrew J. Hesford " @@ -12,7 +12,8 @@ checksum=d19e4293013581dbc4d149aef89b34c76221efcbd873c7aa5193de489addb85a nocross="OCaml does not cross compile" do_build() { - CFLAGS= make ${makejobs} DEBUGGING=false THREADS=true + command -v ocamlc.opt >/dev/null && NATIVE=true || NATIVE=false + CFLAGS= make ${makejobs} DEBUGGING=false THREADS=true NATIVE=$native CFLAGS= make ${makejobs} -C man }