From 273427f9286d0d0fd4c02cfd681f3a19bc045064 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Fri, 2 Aug 2019 15:40:44 +0200 Subject: [PATCH] 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 --- package/imagemagick/imagemagick.mk | 3 +++ 1 file changed, 3 insertions(+) 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 \ -- 2.30.2