lz4: fix host build with glibc older than 2.17
authorBaruch Siach <baruch@tkos.co.il>
Fri, 20 Apr 2018 04:17:20 +0000 (07:17 +0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 20 Apr 2018 06:33:06 +0000 (08:33 +0200)
commit93e44124d694e67ac163a18a38067bc9dea98701
treeb00814fc874e15146f8ed000b9c2c0e58154a401
parent1e2a8d4111f57e79c1848c7a70c6501e2bdacd58
lz4: fix host build with glibc older than 2.17

glibc before 2.17 require the -lrt linker option for clock_gettime(). We
do not support pre 2.17 glibc for the target anymore, but there are
still host platforms with these versions. Add upstream patch to skip use
of clock_gettime() with older glibc versions.

Should fix:
http://autobuild.buildroot.net/results/bc5/bc5d6447ab16a61d9dcf56723106f0b107826ef4/
http://autobuild.buildroot.net/results/7dd/7dd47bef902845a0f7803f1a6c702ec154855858/
http://autobuild.buildroot.net/results/952/9523dbc767dc325befabeb9240c4009e78779c7d/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/lz4/0001-use-more-restrictive-conditions-for-clock_gettime.patch [new file with mode: 0644]