All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] Fix batctl for static builds
@ 2015-03-06 20:15 Jens Zettelmeyer
  2015-03-07 12:01 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Jens Zettelmeyer @ 2015-03-06 20:15 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Jens Zettelmeyer <zettelmeyerj@goooglemail.com>
---
 package/batctl/batctl.mk | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/package/batctl/batctl.mk b/package/batctl/batctl.mk
index c458752..d99239f 100644
--- a/package/batctl/batctl.mk
+++ b/package/batctl/batctl.mk
@@ -9,8 +9,12 @@ BATCTL_SITE = http://downloads.open-mesh.org/batman/releases/batman-adv-$(BATCTL
 BATCTL_LICENSE = GPLv2
 BATCTL_DEPENDENCIES = libnl host-pkgconf
 
+ifeq ($(BR2_STATIC_LIBS),y)
+BATCTL_LIBS += -lnl-3 -lm -lpthread
+endif
+
 define BATCTL_BUILD_CMDS
-	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) all
+	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) LDLIBS="$(TARGET_LIBS) $(BATCTL_LIBS)" $(MAKE) -C $(@D) all
 endef
 
 define BATCTL_INSTALL_TARGET_CMDS
-- 
2.0.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-07 12:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-06 20:15 [Buildroot] [PATCH 1/1] Fix batctl for static builds Jens Zettelmeyer
2015-03-07 12:01 ` Thomas Petazzoni
2015-03-07 12:27   ` Jens Zettelmeyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.