From: Peter Korsgaard Date: Fri, 2 Aug 2019 13:40:44 +0000 (+0200) Subject: package/imagemagick: fix host build for old distributions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=273427f9286d0d0fd4c02cfd681f3a19bc045064;p=buildroot.git package/imagemagick: fix host build for old distributions Fixes: http://autobuild.buildroot.net/results/5f0/5f0b85033e800c9eebc46812592966ec6826bb5d/ imagemagick uses clock_gettime, which was provided by librt rather than libc in glibc < 2.17 - Causing link errors. Signed-off-by: Peter Korsgaard --- diff --git a/package/imagemagick/imagemagick.mk b/package/imagemagick/imagemagick.mk index fff00fcfb1..3a37371e7b 100644 --- a/package/imagemagick/imagemagick.mk +++ b/package/imagemagick/imagemagick.mk @@ -176,6 +176,9 @@ HOST_IMAGEMAGICK_CONF_OPTS = \ --with-png \ --with-zlib +# uses clock_gettime, which was provided by librt in glibc < 2.17 +HOST_IMAGEMAGICK_CONF_ENV = LIBS="-lrt" + HOST_IMAGEMAGICK_DEPENDENCIES = \ host-libjpeg \ host-libpng \