From: Peter Korsgaard Date: Mon, 11 Aug 2014 23:31:14 +0200 Subject: [Buildroot] [PATCH 1/1] package/fbv: Fix linking against libpng In-Reply-To: <1407683528-2780-1-git-send-email-bernd.kuhls@t-online.de> (Bernd Kuhls's message of "Sun, 10 Aug 2014 17:12:08 +0200") References: <1407683528-2780-1-git-send-email-bernd.kuhls@t-online.de> Message-ID: <87y4uu67dp.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Bernd" == Bernd Kuhls writes: > Fixes > http://autobuild.buildroot.net/results/9ca/9cacec257f979745a7d4a43224b243ee4e16f9ac/ > http://autobuild.buildroot.net/results/996/996e42396546555e9fcf0c7135aac610ccca4eee/ > http://autobuild.buildroot.net/results/c91/c918046900045c34c73e16578026cce3e6bcccf8/ > Signed-off-by: Bernd Kuhls > --- > package/fbv/fbv.mk | 1 + > 1 file changed, 1 insertion(+) > diff --git a/package/fbv/fbv.mk b/package/fbv/fbv.mk > index 6f41d9f..980bb9e 100644 > --- a/package/fbv/fbv.mk > +++ b/package/fbv/fbv.mk > @@ -15,6 +15,7 @@ FBV_DEPENDENCIES = # empty > FBV_CONFIGURE_OPTS = # empty > ifeq ($(BR2_PACKAGE_FBV_PNG),y) > FBV_DEPENDENCIES += libpng > +FBV_CONFIGURE_OPTS += "--libs=$(shell $(PKG_CONFIG_HOST_BINARY) --libs libpng)" Hmm, the issue is specifically about static linking (as libpng uses zlib and lm, but fbv doesn't directly use them), so that would be good to mention in the commit message. With that said, your fix doesn't work as pkg-config --libs libpng just returns -lpng16. You need to explicitly ask for the static version with --static to get -lpng16 -lz. I've changed it only use pkg-config (with --static) for the static linking case and committed, thanks. -- Bye, Peter Korsgaard