On Thu, Aug 6, 2015 at 5:54 PM, Stuart Henderson <st...@openbsd.org> wrote:
> I'll see if I can figure something out.

I could get go-1.4.1 and also a "backport" of -1.4.2 which got just
tagged for OpenBSD 5.8 to work with the patches to Makefile below.
Note that no MAKE_ENV is set. though.

> I would expect some, as there's definitely code to do runtime detection.

Indeed, the go binary still includes some SSE instructions that uses
XMM registers, as you indicated probably for detection at run-time.

Today, I want to do more testing using the gopacket library and its
new bsdbpf extension on the PC Engines ALIX, and on APU too.

Regarding the Go port, I am unsure what would be the best way to
proceed, e.g. if a flavor with GO386=387 for i386 without SSE would be
justified for example.


diff for Makefile go-1.4.1 :

@@ -64,7 +67,8 @@
                CXX="${CXX}" \
                GOROOT=${WRKDIST} \
                GOBIN=${WRKDIST}/bin \
-               GOROOT_FINAL=${GOROOT} ./make.bash --no-banner
+               GOROOT_FINAL=${GOROOT} \
+               GO386=387 ./make.bash --no-banner

 do-test:
        @cd ${WRKSRC} && \


diff for Makefile go-1.4.2 :

@@ -1,6 +1,7 @@
 # $OpenBSD: Makefile,v 1.25 2015/05/06 08:28:26 jasper Exp $

-ONLY_FOR_ARCHS =       ${GO_ARCHS}
+#ONLY_FOR_ARCHS =      ${GO_ARCHS}
+ONLY_FOR_ARCHS =        amd64 i386

 COMMENT =              Go programming language

@@ -64,7 +67,8 @@
                CXX="${CXX}" \
                GOROOT=${WRKDIST} \
                GOBIN=${WRKDIST}/bin \
-               GOROOT_FINAL=${GOROOT} ./make.bash --no-banner
+               GOROOT_FINAL=${GOROOT} \
+               GO386=387 ./make.bash --no-banner

 do-test:
        @cd ${WRKSRC} && \

Reply via email to