diff --git a/cross/imagemagick/Makefile b/cross/imagemagick/Makefile index 893f97ccae60..72c9a7f63441 100644 --- a/cross/imagemagick/Makefile +++ b/cross/imagemagick/Makefile @@ -12,18 +12,25 @@ HOMEPAGE = http://www.imagemagick.org/ COMMENT = ImageMagick is a software suite to create, edit, compose, or convert bitmap images. LICENSE = Apache 2.0 -UNSUPPORTED_ARCHS = powerpc ppc824x GNU_CONFIGURE = 1 CONFIGURE_ARGS = --disable-installed --without-perl --without-x --without-fpx --without-wmf --disable-openmp -INSTALL_TARGET = imagemagick_extra_install +INSTALL_TARGET = imagemagick_install include ../../mk/spksrc.cross-cc.mk -imagemagick_extra_install: +ifeq ($(findstring $(ARCH), $(ARM5_ARCHES) powerpc ppc824x ppc853x ppc854x),$(ARCH)) +# ARM5_ARCHES and PPC_ARCHES (except QorIQ) have older kernels +# linking to lib rt fixes unreferenced clock_gettime +CONFIGURE_ARGS += CFLAGS=-lrt +endif + + +.PHONY: imagemagick_install +imagemagick_install: $(RUN) make install prefix=$(STAGING_INSTALL_PREFIX) \ SHARE_PATH=$(STAGING_INSTALL_PREFIX)/share/ImageMagick-7/ \ DATA_DIR=$(STAGING_INSTALL_PREFIX)/share/ImageMagick-7/ \