pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/ruby18-base Only add -lsunmath on SunOS if we're ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a11b4abcd9d6
branches: trunk
changeset: 530378:a11b4abcd9d6
user: dmcmahill <dmcmahill%pkgsrc.org@localhost>
date: Thu Jun 28 01:31:52 2007 +0000
description:
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:
lang/ruby18-base/Makefile | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 8ed7d93170f8 -r a11b4abcd9d6 lang/ruby18-base/Makefile
--- a/lang/ruby18-base/Makefile Thu Jun 28 01:24:39 2007 +0000
+++ b/lang/ruby18-base/Makefile Thu Jun 28 01:31:52 2007 +0000
@@ -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 @@
--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
Home |
Main Index |
Thread Index |
Old Index