summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2007-06-28 01:31:52 +0000
committerdmcmahill <dmcmahill>2007-06-28 01:31:52 +0000
commitebfdd2cfde6da680a1e3f4412491ff3e4be27f10 (patch)
tree09dffa20bd52b22056d4f7b055b98605ebd625db /lang
parentf09b9dab0253d2fe43f660c12bcd1b93887f0420 (diff)
downloadpkgsrc-ebfdd2cfde6da680a1e3f4412491ff3e4be27f10.tar.gz
Only add -lsunmath on SunOS if we're using the sunpro compiler. Otherwise
we don't have it and a replacement for isinf() (the function that sunmath was used for) is compiled in.
Diffstat (limited to 'lang')
-rw-r--r--lang/ruby18-base/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/ruby18-base/Makefile b/lang/ruby18-base/Makefile
index 1465c3f2f95..e612022ba14 100644
--- a/lang/ruby18-base/Makefile
+++ b/lang/ruby18-base/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2007/06/10 04:30:29 joerg Exp $
+# $NetBSD: Makefile,v 1.35 2007/06/28 01:31:52 dmcmahill Exp $
#
DISTNAME= ${RUBY_DISTNAME}
@@ -28,7 +28,14 @@ CONFIGURE_ARGS+= --enable-shared \
--with-ssl-lib="${BUILDLINK_PREFIX.openssl}/lib"
CONFIGURE_ENV+= PREFIX=${PREFIX:Q}
WRKSRC= ${RUBY_WRKSRC}
+
+.include "../../mk/compiler.mk"
+
+.if !empty(PKGSRC_COMPILER:Msunpro)
LIBS.SunOS+= -lsunmath -lm
+.else
+LIBS.SunOS+= -lm
+.endif
# Ruby build process depends on config.status's content
CONFIG_STATUS_OVERRIDE= # empty