summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2022-06-24 12:30:09 +0000
committergdt <gdt@pkgsrc.org>2022-06-24 12:30:09 +0000
commita611273876656aa9b562939089973ebcf96c7aff (patch)
treec6134fd25064f80fb37491b4e707c702128a67f9 /lang
parent899c5d22575d41eb315179c18ef21c176cd3b2b3 (diff)
downloadpkgsrc-a611273876656aa9b562939089973ebcf96c7aff.tar.gz
lang/ocaml: Add workaround for NetBSD/i386 build
The build errored with: configure: error: fma does not work, enable emulation with --enable-imprecise-c99-float-ops and thus that arg is passed to configure. With the change, ocaml builds, and that unison builds and works. (No change on any other platform.)
Diffstat (limited to 'lang')
-rw-r--r--lang/ocaml/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/lang/ocaml/Makefile b/lang/ocaml/Makefile
index 5d3388f58c4..afdbc42e565 100644
--- a/lang/ocaml/Makefile
+++ b/lang/ocaml/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.144 2022/05/24 18:25:38 jaapb Exp $
+# $NetBSD: Makefile,v 1.145 2022/06/24 12:30:09 gdt Exp $
.include "Makefile.common"
@@ -26,6 +26,11 @@ CONFIGURE_ARGS+= --disable-native-compiler
BUILD_TARGET= world
.endif
+# configure: error: fma does not work, enable emulation with --enable-imprecise-c99-float-ops
+.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "i386"
+CONFIGURE_ARGS+= --enable-imprecise-c99-float-ops
+.endif
+
# This is needed because ${WRKSRC}/build/partial-install.sh uses
# $PWD as part of its script. However, with /bin/sh on SunOS
# (cd work/foo-1.0 && echo $PWD) will show that the value of PWD is