aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lang/erlang-runtime18/Makefile6
-rw-r--r--lang/erlang/Makefile6
2 files changed, 4 insertions, 8 deletions
diff --git a/lang/erlang-runtime18/Makefile b/lang/erlang-runtime18/Makefile
index 67d5b7a41cf2..ce7b3b6d3096 100644
--- a/lang/erlang-runtime18/Makefile
+++ b/lang/erlang-runtime18/Makefile
@@ -59,10 +59,6 @@ LDFLAGS+= -L${LOCALBASE}/lib
DISTFILES+= ${ERLANG_DOCS}:erlangorg
.endif
-# See http://wiki.freebsd.org/DTrace to learn how to enable DTrace
-# on your system. You will need to configure STRIP, WITH_CTF and
-# CFLAGS in your make.conf before building.
-
# If you run Erlang and get a message resembling "WARNING: number of
# probes fixed does not match the number of defined probes (54 != 132,
# respectively)" you probably misconfigured DTrace in some way.
@@ -79,6 +75,8 @@ USE_GCC?= yes
.if ${PORT_OPTIONS:MDTRACE}
CONFIGURE_ARGS+=--with-dynamic-trace=dtrace
+CFLAGS+= -fno-omit-frame-pointer
+STRIP=
.else
CONFIGURE_ARGS+=--without-dynamic-trace
.endif
diff --git a/lang/erlang/Makefile b/lang/erlang/Makefile
index 1077608bbd63..2091018a9699 100644
--- a/lang/erlang/Makefile
+++ b/lang/erlang/Makefile
@@ -76,10 +76,6 @@ DOC_DISTFILES= armstrong_thesis_2003.pdf:joe \
programming_rules.pdf:erlangse
.endif
-# See http://wiki.freebsd.org/DTrace to learn how to enable DTrace
-# on your system. You will need to configure STRIP, WITH_CTF and
-# CFLAGS in your make.conf before building.
-
# If you run Erlang and get a message resembling "WARNING: number of
# probes fixed does not match the number of defined probes (54 != 132,
# respectively)" you probably misconfigured DTrace in some way.
@@ -96,6 +92,8 @@ USE_GCC?= yes
.if ${PORT_OPTIONS:MDTRACE}
CONFIGURE_ARGS+=--with-dynamic-trace=dtrace
+CFLAGS+= -fno-omit-frame-pointer
+STRIP=
.else
CONFIGURE_ARGS+=--without-dynamic-trace
.endif