summaryrefslogtreecommitdiff
path: root/lang/ruby200-base
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2015-06-21 14:58:06 +0000
committerjperkin <jperkin@pkgsrc.org>2015-06-21 14:58:06 +0000
commite896ff52b1fbed218413962825567a2839243ebc (patch)
treeb982d410d7f8082c906bed849e2480c7a1b25419 /lang/ruby200-base
parent751a2bc76718797bc57e1b271959aa37283861db (diff)
downloadpkgsrc-e896ff52b1fbed218413962825567a2839243ebc.tar.gz
On EL6 systems the 'systemtap-sdt-devel' RPM installs a /usr/bin/dtrace
which is emphatically not DTrace, causing nothing but problems for builds. Explicitly disable DTrace support if /usr/bin/dtrace is found.
Diffstat (limited to 'lang/ruby200-base')
-rw-r--r--lang/ruby200-base/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/lang/ruby200-base/Makefile b/lang/ruby200-base/Makefile
index a2c41647633..59d5c2f248e 100644
--- a/lang/ruby200-base/Makefile
+++ b/lang/ruby200-base/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2015/04/30 03:34:31 taca Exp $
+# $NetBSD: Makefile,v 1.18 2015/06/21 14:58:06 jperkin Exp $
#
DISTNAME= ${RUBY_DISTNAME}
@@ -45,6 +45,11 @@ CONFIGURE_ENV+= INSTALL="${INSTALL} ${COPY}" \
.include "../../mk/compiler.mk"
+# /usr/bin/dtrace is not DTrace.
+.if ${OPSYS} == "Linux" && exists(/usr/bin/dtrace)
+CONFIGURE_ARGS+= --disable-dtrace
+.endif
+
.if !empty(PKGSRC_COMPILER:Msunpro)
LIBS.SunOS+= -B static -lsunmath -B dynamic -lm
LDFLAGS.SunOS+= -L${SUNWSPROBASE}/lib -Wl,-R${SUNWSPROBASE}/lib