pkgsrc/lang/erlang21/hacks.mk
jperkin 5e76b18444 erlang21: Re-import erlang version 21.3.
This is a copy of the previous lang/erlang of that release, with a few bits
tidied up, and configured to live alongside the newer lang/erlang package by
using a versioned library directory.

This version is required for at least databases/couchdb, and may be required
for other software that is incompatible with OTP 23.
2021-01-27 16:13:51 +00:00

30 lines
622 B
Makefile

# $NetBSD: hacks.mk,v 1.1 2021/01/27 16:13:51 jperkin 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} == "SunOS")
CFLAGS+= -DMMAP_MAP_FIXED
.endif
CFLAGS.NetBSD+= -D_NETBSD_SOURCE
# gcov miscompiled PR 53567
.if !empty(MACHINE_PLATFORM:MNetBSD-8.0-*)
CONFIGURE_ARGS+= --disable-pgo
.endif
.endif