Re: pkg/31985 ([lang/perl5] cannot build 64-bit binaries on Solaris 10 (amd64) with Sun Studio 10)

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: pkg/31985 ([lang/perl5] cannot build 64-bit binaries on Solaris 10 (amd64) with Sun Studio 10)

by dholland :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Synopsis: [lang/perl5] cannot build 64-bit binaries on Solaris 10 (amd64) with Sun Studio 10

State-Changed-From-To: open->feedback
State-Changed-By: dholland@...
State-Changed-When: Mon, 09 Nov 2009 06:55:49 +0000
State-Changed-Why:
Is this still a problem with current pkgsrc and perl 5.10?




Re: pkg/31985 ([lang/perl5] cannot build 64-bit binaries on Solaris 10 (amd64) with Sun Studio 10)

by NAKAJI Hiroyuki-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>>>>> In <20091109065551.5542863B8CD@...>
>>>>> dholland@... wrote:

> Is this still a problem with current pkgsrc and perl 5.10?

This patch and setting "ABI=64" in mk.conf are needed to build 64-bit
perl on Solaris/amd64.

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/perl5/Makefile,v
retrieving revision 1.154
diff -u -r1.154 Makefile
--- Makefile 23 Oct 2009 18:41:02 -0000 1.154
+++ Makefile 20 Nov 2009 06:33:46 -0000
@@ -249,6 +249,12 @@
 .  else
 PKG_SUGGESTED_OPTIONS+= 64bitnone
 .  endif
+.elif ${OPSYS} == "SunOS"
+.  if defined(ABI) && ${ABI} == "64"
+PKG_SUGGESTED_OPTIONS+= 64bitall
+.  else
+PKG_SUGGESTED_OPTIONS+= 64bitnone
+.  endif
 .else
 PKG_SUGGESTED_OPTIONS+= 64bitauto
 .endif
--
NAKAJI Hiroyuki