package/imagemagick: fix host build for old distributions
authorPeter Korsgaard <peter@korsgaard.com>
Fri, 2 Aug 2019 13:40:44 +0000 (15:40 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 2 Aug 2019 17:46:40 +0000 (19:46 +0200)
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 <peter@korsgaard.com>
package/imagemagick/imagemagick.mk

index fff00fcfb16dde2c7c2bc6aad2b34bf42243779f..3a37371e7b8786b8aa15994490fa5aa18e7627ca 100644 (file)
@@ -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 \