[flac-dev] Broken build on musl libc

lvqcl lvqcl.mail at gmail.com
Tue Mar 15 09:55:49 PDT 2016


Dave Yeo <dave.r.yeo at gmail.com> писал(а) в своём письме Tue, 15 Mar 2016 02:09:13 +0300:

>> With --disable-sse, FLAC__SSE_OS is undefined and FLAC__cpu_info() uses
>> sigemptyset/sigaction to determine OS SSE support.
>
> That's not quite right as I have to build binaries with --disable-sse (I
> build and distribute both with and without) so that some users on PII's
> don't get a sigill, even though the OS supports SSE. So it seems to
> unconditionally disable SSE support or test the CPU support with
> sigemptyset/sigaction.

Currently --disable-sse does the following:
1) enables code that detects OS SSE support;
2) disables -msse2 option.

Without --disable-sse flac assumes that target OS supports SSE
and target CPU supports SSE2.

If you want to create a program that works on non-sse2 x86 CPUs,
you can also do this: open configure.ac, find the following code

	if test "x$asm_optimisation$sse_os" = "xyesyes" ; then
		XIPH_ADD_CFLAGS([-msse2])
		fi

and remove it.


More information about the flac-dev mailing list