1 # $NetBSD: hacks.mk,v 1.1 2009/12/15 12:09:20 asau Exp $
3 .if !defined(ERLANG_HACKS_MK)
4 ERLANG_HACKS_MK= # empty
7 ### Building this with -O3 could be asking for trouble.
9 BUILDLINK_TRANSFORM+= opt:-O3:-O2
11 .include "../../mk/bsd.fast.prefs.mk"
14 ### XXX Don't let the kernel put the map elsewhere.
16 .if (${OPSYS} == "NetBSD" || \
17 ${OPSYS} == "OpenBSD" || \
18 ${OPSYS} == "FreeBSD" || \
19 ${OPSYS} == "Solaris")
20 CFLAGS+= -DMMAP_MAP_FIXED
23 CFLAGS.NetBSD+= -D_NETBSD_SOURCE