FreeBSD Bugzilla – Attachment 164981 Details for
Bug 205820
[Patch] lang/go add GOARM=7 when system has multiple CPUs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
add GOARM=7
Makefile.diff (text/plain), 1.03 KB, created by
Fukang Chen
on 2016-01-03 06:35:52 UTC
(
hide
)
Description:
add GOARM=7
Filename:
MIME Type:
Creator:
Fukang Chen
Created:
2016-01-03 06:35:52 UTC
Size:
1.03 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 405111) >+++ Makefile (working copy) >@@ -29,6 +29,15 @@ > > .include <bsd.port.pre.mk> > >+CPUS!= ${SYSCTL} -n kern.smp.cpus >+ >+GO_BUILDENV= CC=${CC} >+GO_BUILDENV+= GOROOT=${WRKSRC} >+GO_BUILDENV+= GOROOT_FINAL=${PREFIX}/go >+GO_BUILDENV+= GOROOT_BOOTSTRAP=${LOCALBASE}/go14 >+GO_BUILDENV+= GOBIN= >+GO_BUILDENV+= GOOS=${OPSYS:tl} >+ > .if ${ARCH} == "i386" > GOARCH=386 > .elif ${ARCH} == "amd64" >@@ -35,10 +44,14 @@ > GOARCH=amd64 > .elif ${ARCH} == "armv6" > GOARCH=arm >+. if ${CPUS} >= 2 >+GO_BUILDENV+= GOARM=7 >+. endif > .else > IGNORE= unknown arch ${ARCH} > .endif > >+GO_BUILDENV+= GOARCH=${GOARCH} > PLIST_SUB+= opsys_ARCH=${OPSYS:tl}_${GOARCH} > > .if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1100000) >@@ -50,10 +63,7 @@ > > do-build: > cd ${WRKSRC}/src && \ >- CC=${CC} \ >- GOROOT=${WRKSRC} GOROOT_FINAL=${PREFIX}/go \ >- GOROOT_BOOTSTRAP=${LOCALBASE}/go14 \ >- GOBIN= GOARCH=${GOARCH} GOOS=${OPSYS:tl} \ >+ ${GO_BUILDENV} \ > ${SH} make.bash > > do-install:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 205820
: 164981