Subject: pkg/33705: lang/ocaml solaris10 amd64
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 06/12/2006 15:35:00
>Number:         33705
>Category:       pkg
>Synopsis:       lang/ocaml solaris10 amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 12 15:35:00 +0000 2006
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc


>Description:


the configure phase does not detect correctly the machine arch
when compiling in 64 bit.



>How-To-Repeat:


bmake configure
look at arch in the log
must be x86_64 instead of i386


>Fix:


diff -bu Makefile.common.orig Makefile.common
--- Makefile.common.orig        Tue May 23 10:31:01 2006
+++ Makefile.common     Mon Jun 12 17:12:51 2006
@@ -20,6 +20,7 @@
 CONFIGURE_ARGS+=       -libs ${LDFLAGS:Q}
 CONFIGURE_ARGS+=       -with-pthread
 CPPFLAGS+=             -DDB_DBM_HSEARCH
+CONFIGURE_ARGS+=       -host ${MACHINE_GNU_PLATFORM:Q}
 
 .include "../../mk/bsd.prefs.mk"