pkgsrc-wip/erlang15/hacks.mk
Filip Hajny 4a5deaa293 Import erlang-15.1.3.1 as wip/erlang15.
Riak won't support R16 until next release, this package holds
lang/erlang from just before it was updated to R16.
2013-07-19 09:55:45 +00:00

25 lines
513 B
Makefile

# $NetBSD: hacks.mk,v 1.1 2013/07/19 09:55:46 fhajny Exp $
.if !defined(ERLANG_HACKS_MK)
ERLANG_HACKS_MK= # empty
###
### Building this with -O3 could be asking for trouble.
###
BUILDLINK_TRANSFORM+= opt:-O3:-O2
.include "../../mk/bsd.fast.prefs.mk"
###
### XXX Don't let the kernel put the map elsewhere.
###
.if (${OPSYS} == "NetBSD" || \
${OPSYS} == "OpenBSD" || \
${OPSYS} == "FreeBSD" || \
${OPSYS} == "Solaris")
CFLAGS+= -DMMAP_MAP_FIXED
.endif
CFLAGS.NetBSD+= -D_NETBSD_SOURCE
.endif