summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjoerg <joerg>2012-01-20 17:05:11 +0000
committerjoerg <joerg>2012-01-20 17:05:11 +0000
commitb32ec73ee467ad535cca023612859deb673e7847 (patch)
tree2d9522fd4b2a5b5992b7e481939ad8076cadf542 /lang
parent61826e31f38fa2ae095b332e809f3f01953d00e6 (diff)
downloadpkgsrc-b32ec73ee467ad535cca023612859deb673e7847.tar.gz
Always use __builtin_frame_address for Clang. The fallback using alloca
gets optimised away by it. XXX This can most likely supersede hacks.mk
Diffstat (limited to 'lang')
-rw-r--r--lang/ruby18-base/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/ruby18-base/Makefile b/lang/ruby18-base/Makefile
index fd20d6c47ac..a4514c3f4fb 100644
--- a/lang/ruby18-base/Makefile
+++ b/lang/ruby18-base/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.68 2011/12/28 16:40:06 taca Exp $
+# $NetBSD: Makefile,v 1.69 2012/01/20 17:05:11 joerg Exp $
#
DISTNAME= ${RUBY_DISTNAME}
@@ -47,6 +47,10 @@ CONFIGURE_ENV+= LDSHARED="${CC} -G"
LIBS.SunOS+= -lm
.endif
+.if !empty(PKGSRC_COMPILER:Mclang)
+CONFIGURE_ARGS+= --enable-frame-address
+.endif
+
# Ruby build process depends on config.status's content
CONFIG_STATUS_OVERRIDE= # empty