Skip to content

Commit

Permalink
fix linking to rt lib
Browse files Browse the repository at this point in the history
  • Loading branch information
hgy59 committed Mar 16, 2020
1 parent 9f123db commit 0f65d76
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions cross/imagemagick/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/ \
Expand Down

0 comments on commit 0f65d76

Please sign in to comment.