On 2015/08/06 11:54, Rolf Sommerhalder wrote:
> On Thu, Aug 6, 2015 at 10:49 AM, Rolf Sommerhalder > Thus, I will now
> re-build the entire package with this option, re-try,
> > and report the outcome...
>
> Being ecouraged by [1] too, I re-build go-1.4.1 package with an
> additional line in its Makefile:
> .elif ${MACHINE_ARCH} == "i386"
> GOARCH = 386
> GO386 = 387
> EXEPREFIX = 8
>
> Unfortunately, the resulting package still aborts with SIGILL on ALIX
> with AMD Geode LX.
>
> Thus, I will dig into the package build in oder to verify that the
> GO386 parameter is indeed taking effect throughout the build
> process...
>
> [1] Golang on the Geode processor
> http://blog.nella.org/golang-on-the-geode-processor/
>
That's a makefile variable only, not passed to the build. Try this?
Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/go/Makefile,v
retrieving revision 1.25
diff -u -p -r1.25 Makefile
--- Makefile 6 May 2015 08:28:26 -0000 1.25
+++ Makefile 6 Aug 2015 10:06:49 -0000
@@ -44,6 +44,8 @@ GOARCH = 386
EXEPREFIX = 8
PKG_ARGS += -Damd64=0
PKG_ARGS += -Di386=1
+# avoid SSE
+MAKE_ENV += GO386=387
.else
PKG_ARGS += -Damd64=0 -Di386=0
.endif