pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/ruby18-base fix build on Solaris w/ sunpro:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/660552bb9956
branches:  trunk
changeset: 534983:660552bb9956
user:      grant <grant%pkgsrc.org@localhost>
date:      Mon Nov 05 01:09:23 2007 +0000

description:
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:

 lang/ruby18-base/Makefile |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 957e75567208 -r 660552bb9956 lang/ruby18-base/Makefile
--- a/lang/ruby18-base/Makefile Sun Nov 04 23:53:44 2007 +0000
+++ b/lang/ruby18-base/Makefile Mon Nov 05 01:09:23 2007 +0000
@@ -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 @@
 .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



Home | Main Index | Thread Index | Old Index