diff options
author | grant <grant@pkgsrc.org> | 2007-11-05 01:09:23 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2007-11-05 01:09:23 +0000 |
commit | 6979db74bb61069f9977bd259969c31d78356329 (patch) | |
tree | 9dafdf1baf4cee77a2462c5d2570f6378f40a63a /lang | |
parent | ce502a864ca8d91030674bfeaa2056ddc90a6a3f (diff) | |
download | pkgsrc-6979db74bb61069f9977bd259969c31d78356329.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 |