pkgsrc/lang/ocaml/hacks.mk
jaapb 24289a687d Updated lang/ocaml to 4.11.1.
Patches for solaris and friends are reinstated (thanks jperkin@)
Also thanks to he@ for testing on powerpc and arm

Highlights for 4.10.0:
* A new best-fit allocator for the major heap which reducing both GC cost
  and memory usage.
* Immutable strings are now enforced at configuration time
* User-defined indexing operators for multidimensional arrays
* Miscellaneous improvements to the manual
* A more precise exhaustiveness check for GADTs
* Many bug fixes

Highlights for 4.11.0:
* Statmemprof: a new statistical memory profiler
* A new instrumented runtime that logs runtime statistics in a standard
  format
* A native backend for the RISC-V architecture
* Improved backtraces that refer to function names
* Suppport for recursive and yet unboxed types
* A quoted extension syntax for ppxs.
* Many quality of life improvements
* Many bug fixes.

4.11.1 is a bugfix release. Full details in the CHANGELOG included with
the distribution.
2020-12-09 10:33:04 +00:00

38 lines
1.3 KiB
Makefile

# $NetBSD: hacks.mk,v 1.9 2020/12/09 10:33:04 jaapb Exp $
.if !defined(OCAML_HACKS_MK)
OCAML_HACKS_MK= defined
.include "../../mk/compiler.mk"
### [Fri Jan 17 18:06:18 JST 2014 : pho]
### The linker that comes with Darwin 9 & prior does not recognize the option
### "-no_compact_unwind" since compact unwind information is only
### introduced (and made default) as of Darwin 10. Note that this
### can't be worked around with transformation
### "rm:-Wl,-no_compact_unwind" because the linker option is baked
### into utils/config.ml and will later be used by the OCaml compiler
### itself.
###
.if !empty(MACHINE_PLATFORM:MDarwin-[0-9].*-*)
PKG_HACKS+= no_compact_unwind
SUBST_CLASSES+= no_compact_unwind
SUBST_MESSAGE.no_compact_unwind= Removing -no_compact_unwind from linker options
SUBST_FILES.no_compact_unwind= configure
SUBST_SED.no_compact_unwind= -e 's/-Wl,-no_compact_unwind//g'
SUBST_STAGE.no_compact_unwind= pre-configure
.endif
### [ 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+= opt:-O[0-9]*:-O
#. endif
#.endif
.endif # OCAML_HACKS_MK