Skip to contentSkip to conversation

package/fbv: Fix linking against libpng

PATCH New Bernd Kuhls 2 participants 2 messages Aug 10, 2014 – Aug 11, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/fbv: Fix linking against libpng

Fixes
http://autobuild.buildroot.net/results/9ca/9cacec257f979745a7d4a43224b243ee4e16f9ac/
http://autobuild.buildroot.net/results/996/996e42396546555e9fcf0c7135aac610ccca4eee/
http://autobuild.buildroot.net/results/c91/c918046900045c34c73e16578026cce3e6bcccf8/

---
 package/fbv/fbv.mk |    1 +
 1 file changed, 1 insertion(+)
package/fbv/fbv.mk +1 -0
index 6f41d9f..980bb9e 100644
@@ -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)"
 else
 FBV_CONFIGURE_OPTS += --without-libpng
 endif
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 package/fbv: Fix linking against libpng

Quoted 17 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

Fixes
http://autobuild.buildroot.net/results/9ca/9cacec257f979745a7d4a43224b243ee4e16f9ac/
http://autobuild.buildroot.net/results/996/996e42396546555e9fcf0c7135aac610ccca4eee/
http://autobuild.buildroot.net/results/c91/c918046900045c34c73e16578026cce3e6bcccf8/

---
 package/fbv/fbv.mk |    1 +
 1 file changed, 1 insertion(+)
package/fbv/fbv.mk +0 -0
index 6f41d9f..980bb9e 100644

package/fbv/fbv.mk FBV_DEPENDENCIES = # empty · line 18

Quoted 4 lines
package/fbv/fbv.mk +1 -0
@@ -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.

Signature · 1 line
Bye, Peter Korsgaard