aboutsummaryrefslogtreecommitdiff
path: root/package/fbv/fbv.mk
diff options
context:
space:
mode:
authorGravatar Bernd Kuhls <bernd.kuhls@t-online.de>2014-08-10 17:12:08 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-08-11 23:30:25 +0200
commita3ff0ad550ba1bfd88e66ac8209446577e889849 (patch)
tree6f09130ac176ab5f28a517f7bf91ebc874685981 /package/fbv/fbv.mk
parenta21566d317c1f1814f9445bc7a8a6cfb4d7a063b (diff)
downloadbuildroot-a3ff0ad550ba1bfd88e66ac8209446577e889849.tar.gz
buildroot-a3ff0ad550ba1bfd88e66ac8209446577e889849.tar.bz2
package/fbv: Fix static 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/ [Peter: adjust description, pass --static to pkg-config, only use for static linking] Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/fbv/fbv.mk')
-rw-r--r--package/fbv/fbv.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/fbv/fbv.mk b/package/fbv/fbv.mk
index 6f41d9ff80..cc1dc7be88 100644
--- a/package/fbv/fbv.mk
+++ b/package/fbv/fbv.mk
@@ -15,6 +15,12 @@ FBV_DEPENDENCIES = # empty
FBV_CONFIGURE_OPTS = # empty
ifeq ($(BR2_PACKAGE_FBV_PNG),y)
FBV_DEPENDENCIES += libpng
+
+# libpng in turn depends on other libraries
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+FBV_CONFIGURE_OPTS += "--libs=$(shell $(PKGg_CONFIG_HOST_BINARY) --libs libpng --static)"
+endif
+
else
FBV_CONFIGURE_OPTS += --without-libpng
endif