tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Softfloat on i386



On Sun, 18 Jan 2026 at 14:12, Greg Troxel <gdt%lexort.com@localhost> wrote:
>
> Benny Siegert <bsiegert%netbsd.org@localhost> writes:
>
> > I am a bit fuzzy, but I think that setting the variable when building
> > wireguard-go should suffice. The compiler can always emit both. And
> > the standard library is recompiled as needed. So if you set GO386 when
> > building wireguard *only*, the package should still work on your 586
> > machine.
>
> In that view this not a PKG_OPTION for the go compiler, but a "CFLAGS+=
> march=" sort of thing.
>
> I thinks what abs@ is getting at is
>
>   change the compiler build so that the default cpu is i386/softfloat.
>
> rather than
>
>   add cflags to pakckage builds
>
> and to me that change-the-default option makes sense.

Agreed - I'm working on a three step plan :)
1) confirm what setting (GO386=softfloat) fixes the issue (Done though
reworking test based on Benny's comment)
2) determine best way to add an explicit option to switch between i386
softfloat and SSE2
3) flip the default to softfloat

Thanks

David


Home | Main Index | Thread Index | Old Index