flac: fix benchmark linking issue with older glibc versions
authorPeter Korsgaard <peter@korsgaard.com>
Mon, 9 Jan 2017 21:29:38 +0000 (22:29 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 10 Jan 2017 13:02:25 +0000 (14:02 +0100)
commitf7a2e115a75bd28dff4bb81d66a8667b12bfc368
treea7ee91377016dda296fdbafb906ab7be36f017f1
parent19256ed47bf40fcf79f3807f0b7f2809691cafdd
flac: fix benchmark linking issue with older glibc versions

Fixes:
http://autobuild.buildroot.net/results/b64/b643824d797050d7c001a3b72598158d8f1c6128/
http://autobuild.buildroot.net/results/a2f/a2f2d7b4e9e7b57bc8691e3ec29ecf818be3f79b/

The benchmark tool uses clock_gettime which is available in librt instead of
libc in older glibc versions.  The build system correctly links with -lrt on
Linux systems, but misdetects non-x86 linux systems as !linux, causing build
failures.

Add a patch to relax the linux OS detection to also work on non-x86 systems.

Patch submitted upstream:
http://lists.xiph.org/pipermail/flac-dev/2017-January/006103.html

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/flac/0001-configure.ac-relax-linux-OS-detection.patch [new file with mode: 0644]
package/flac/flac.mk