summaryrefslogtreecommitdiff
path: root/lang/erlang/hacks.mk
diff options
context:
space:
mode:
authorasau <asau@pkgsrc.org>2009-12-15 12:09:20 +0000
committerasau <asau@pkgsrc.org>2009-12-15 12:09:20 +0000
commitfa81840e44df4f2f2774531ddb6beb9b23df61bc (patch)
treecfdb1c91eb2a629a03904301840d7d167e19c952 /lang/erlang/hacks.mk
parenteb697ee03e31a8d512892da51df004948d765c4b (diff)
downloadpkgsrc-fa81840e44df4f2f2774531ddb6beb9b23df61bc.tar.gz
Commit forgotten files.
Diffstat (limited to 'lang/erlang/hacks.mk')
-rw-r--r--lang/erlang/hacks.mk25
1 files changed, 25 insertions, 0 deletions
diff --git a/lang/erlang/hacks.mk b/lang/erlang/hacks.mk
new file mode 100644
index 00000000000..b7bf04669d7
--- /dev/null
+++ b/lang/erlang/hacks.mk
@@ -0,0 +1,25 @@
+# $NetBSD: hacks.mk,v 1.1 2009/12/15 12:09:20 asau 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