[flac-dev] Questions about libFLAC and SSE/SSE2/...

Christian Weisgerber naddy at mips.inka.de
Thu Dec 15 15:15:21 UTC 2016


On 2016-12-03, Erik de Castro Lopo <mle+la at mega-nerd.com> wrote:

>> FreeBSD just comments out this option:
>> <https://svnweb.freebsd.org/ports/head/audio/flac/files/patch-configure?view=markup#l28>
>> 
>> Maybe it makes sense to remove this option?
>
> Without knowing why FreeBSD disabled it, I'd prefer not to change it.

I disabled this for the FreeBSD and OpenBSD ports because a package
built for an architecture needs to be able to run on all CPUs
supported by that architecture.

For the "i386" (IA-32) architecture, that includes CPUs that do not
support SSE2. Adding -msse2 to the compiler flags allows the compiler
to issue SSE2 instructions throughout the code, producing binaries
that are incompatible with older CPUs.

-- 
Christian "naddy" Weisgerber                          naddy at mips.inka.de


More information about the flac-dev mailing list