From: Bernd Kuhls Date: Wed, 6 Sep 2017 16:39:04 +0000 (+0200) Subject: package/pngquant: fix target build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff9aaa82873f693199e947749f70ed6b5ac3f8ed;p=buildroot.git package/pngquant: fix target build Pngquant 2.10 introduced a bundled library libimagequant, Makefile passes $LIQCONFIGUREFLAGS to the configure script of libimagequant before building this library: https://github.com/pornel/pngquant/blob/master/Makefile#L27 This variable is filled by configure with the content of $LIQCONFIGURE https://github.com/pornel/pngquant/blob/master/configure#L553 We need to pass CC/CFLAGS/LDFLAGS as parameter to configure to fill $LIQCONFIGURE with correct values in order to use the target toolchain for building libimagequant: https://github.com/pornel/pngquant/blob/master/configure#L56 Fixes http://autobuild.buildroot.net/results/ab1/ab1193db9d76adc02be44d6f273e0986952df3e2/ Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- diff --git a/package/pngquant/pngquant.mk b/package/pngquant/pngquant.mk index a602cbef59..1ce8359d40 100644 --- a/package/pngquant/pngquant.mk +++ b/package/pngquant/pngquant.mk @@ -22,6 +22,7 @@ define PNGQUANT_CONFIGURE_CMDS ./configure --prefix=/usr \ $(if $(BR2_PACKAGE_LCMS2),--with-lcms2,--without-lcms2) \ $(if $(BR2_X86_CPU_HAS_SSE),--enable-sse,--disable-sse) \ + $(TARGET_CONFIGURE_OPTS) \ ) endef