Enable fma emulation on m68k
authorStephane Glondu <steph@glondu.net>
Wed, 22 Dec 2021 08:24:46 +0000 (09:24 +0100)
committerStéphane Glondu <glondu@debian.org>
Wed, 22 Dec 2021 08:25:16 +0000 (09:25 +0100)
debian/rules

index 583c0d1b8fa3d3c2bf5404c88415fcfd209fff1f..a7beb7cefcb4699958d5381090ae97e6acfa1a96 100755 (executable)
@@ -67,6 +67,11 @@ ifeq (,$(OCAML_OPT_ARCH))
 CONFIGURE_OPTS += --disable-native-compiler
 endif
 
+# fma does not work on m68k, enable emulation as instructed by configure script
+ifeq (m68k,$(DEB_BUILD_ARCH))
+CONFIGURE_OPTS += --enable-imprecise-c99-float-ops
+endif
+
 # To avoid Lintian's file-references-package-build-path
 export BUILD_PATH_PREFIX_MAP=.=$(CURDIR)