pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/ocaml gcc44 fix



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fc24ed474837
branches:  trunk
changeset: 399901:fc24ed474837
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Thu Oct 08 01:24:51 2009 +0000

description:
gcc44 fix

diffstat:

 lang/ocaml/hacks.mk |  20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diffs (24 lines):

diff -r 8a4c227d8034 -r fc24ed474837 lang/ocaml/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ocaml/hacks.mk       Thu Oct 08 01:24:51 2009 +0000
@@ -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



Home | Main Index | Thread Index | Old Index