# $NetBSD: hacks.mk,v 1.6 2023/04/27 13:15:55 wiz 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 ${MACHINE_PLATFORM:MNetBSD-8.0-*} CONFIGURE_ARGS+= --disable-pgo .endif .endif