diff options
author | grant <grant> | 2007-11-05 01:09:23 +0000 |
---|---|---|
committer | grant <grant> | 2007-11-05 01:09:23 +0000 |
commit | c008e8172292ae5e68283bfaa27d7be87d4edb63 (patch) | |
tree | 9dafdf1baf4cee77a2462c5d2570f6378f40a63a /lang | |
parent | 7f2d36a2cca599ab8d44e8878c43270258c8ea52 (diff) | |
download | pkgsrc-c008e8172292ae5e68283bfaa27d7be87d4edb63.tar.gz |
fix build on Solaris w/ sunpro:
- don't call the linker directly to build shared libraries,
use ${CC} -G
- link libsunmath statically, as it is provided by SUNWspro and
therefore not available on systems where the compiler is not
installed.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/ruby18-base/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lang/ruby18-base/Makefile b/lang/ruby18-base/Makefile index 8dd275614f8..f24aff94878 100644 --- a/lang/ruby18-base/Makefile +++ b/lang/ruby18-base/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.38 2007/10/06 06:12:35 taca Exp $ +# $NetBSD: Makefile,v 1.39 2007/11/05 01:09:23 grant Exp $ # DISTNAME= ${RUBY_DISTNAME} @@ -31,7 +31,9 @@ WRKSRC= ${RUBY_WRKSRC} .include "../../mk/compiler.mk" .if !empty(PKGSRC_COMPILER:Msunpro) -LIBS.SunOS+= -lsunmath -lm +LIBS.SunOS+= -B static -lsunmath -B dynamic -lm +LDFLAGS.SunOS+= -L${SUNWSPROBASE}/lib -Wl,-R${SUNWSPROBASE}/lib +MAKE_FLAGS+= LDSHARED="${CC} -G" .else LIBS.SunOS+= -lm .endif |