summaryrefslogtreecommitdiff
path: root/lang/ocaml
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2009-10-08 01:24:51 +0000
committerdmcmahill <dmcmahill>2009-10-08 01:24:51 +0000
commit4ca84f320f1ef7d87b6b7c843bad44bc71bdd569 (patch)
treeb0638eb53d440a21eb78159c6e52f47459e186df /lang/ocaml
parenta45a7594b03d88f1ea66d04a903e57a4e624b040 (diff)
downloadpkgsrc-4ca84f320f1ef7d87b6b7c843bad44bc71bdd569.tar.gz
gcc44 fix
Diffstat (limited to 'lang/ocaml')
-rw-r--r--lang/ocaml/hacks.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/ocaml/hacks.mk b/lang/ocaml/hacks.mk
new file mode 100644
index 00000000000..cdec39f5d20
--- /dev/null
+++ b/lang/ocaml/hacks.mk
@@ -0,0 +1,20 @@
+# $NetBSD: hacks.mk,v 1.1 2009/10/08 01:24:51 dmcmahill Exp $
+
+.if !defined(OCAML_HACKS_MK)
+OCAML_HACKS_MK= defined
+
+.include "../../mk/compiler.mk"
+
+### [ Wed Oct 7 9:16:42 GMT 2009 : dmcmahill ]
+### On NetBSD/i386, gcc optimisation, at least for version 4.4.1 (lang/gcc44),
+### produces a binary which segfaults. The binary is used during part of the
+### build process.
+###
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-i386)
+. if !empty(CC_VERSION:Mgcc-4.4.*)
+PKG_HACKS+= optimisation
+BUILDLINK_TRANSFORM+= rename:-O[0-9]*:-O
+. endif
+.endif
+
+.endif # OCAML_HACKS_MK