pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/ocaml lang/ocaml: Add workaround for NetBSD/i386 ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/88b5499bc7bd
branches:  trunk
changeset: 381030:88b5499bc7bd
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Fri Jun 24 12:30:09 2022 +0000

description:
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:

 lang/ocaml/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 0250f5eb15e0 -r 88b5499bc7bd lang/ocaml/Makefile
--- a/lang/ocaml/Makefile       Fri Jun 24 07:27:28 2022 +0000
+++ b/lang/ocaml/Makefile       Fri Jun 24 12:30:09 2022 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index