diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2007-06-28 01:31:52 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2007-06-28 01:31:52 +0000 |
commit | 48efc9cde740ad7d15ce96c9e3efdcb232232f28 (patch) | |
tree | 09dffa20bd52b22056d4f7b055b98605ebd625db /lang/ruby18-base/Makefile | |
parent | b8743d165d8e3b47c4616394462b80b22d6e1583 (diff) | |
download | pkgsrc-48efc9cde740ad7d15ce96c9e3efdcb232232f28.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/ruby18-base/Makefile')
-rw-r--r-- | lang/ruby18-base/Makefile | 9 |
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 |