pkgsrc-Users archive

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

Re: Package options dialog




On 05/07/18 14:55, Jason Bacon wrote:
> In theory, I think -march=native alone achieve this with clang and gcc,
> and this is what I've been looking at.

Would it just be easier for you maintain a template mk.conf with the
necessary options set so that those who need to build a package manually
can uncompress bootstrap kit (or bootstrap), add the mk.conf snippet,
start building the relevant packages.

> I see that cpuflags adds some additional flags:
> 
> netbsddev /usr/pkgsrc/wip/plink2 # cpuflags
> -mfpmath=sse -msse3 -march=native
> 
> I assume cpuflags is compensating for GCC shortcomings.  I'll do some
> comparisons on our systems.

In what regards?

> It doesn't appear to directly support clang, although I would guess it
> will work at least pretty well, given the high level of compatibility
> with GCC.

That could just be that it needs some attention rather than intentional.

Just out of curiosity, are you looking to build everything with these
flags or specific applications which you are certain behave correctly
with compiler optimisations?


Sevan


Home | Main Index | Thread Index | Old Index