diff options
author | olgeni <olgeni@FreeBSD.org> | 2016-01-20 18:30:04 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2016-01-20 18:30:04 +0800 |
commit | b7bc8933647766a7fd8fc5fb36977717f0391cbd (patch) | |
tree | 22dccb5497f628d79cf4ecc672fbc1df976e9a08 /lang/erlang-runtime18 | |
parent | 48238c30be5aadb2679d29f6f1eaf74571f50b92 (diff) | |
download | freebsd-ports-gnome-b7bc8933647766a7fd8fc5fb36977717f0391cbd.tar.gz freebsd-ports-gnome-b7bc8933647766a7fd8fc5fb36977717f0391cbd.tar.zst freebsd-ports-gnome-b7bc8933647766a7fd8fc5fb36977717f0391cbd.zip |
Improve the DTrace build for Erlang 18.
With a couple of changes it seems to work just fine when building
as a user, and also inside poudriere jails.
If you want to build in poudriere, you must:
- Have dtraceall.ko loaded.
- Have a kernel inside the jail (i.e. create the poudriere jail with -K).
Diffstat (limited to 'lang/erlang-runtime18')
-rw-r--r-- | lang/erlang-runtime18/Makefile | 6 |
1 files changed, 2 insertions, 4 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 |