* [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
* [Buildroot] [PATCH 1/1] Fix batctl for static builds
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
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2015-03-07 12:01 UTC (permalink / raw)
To: buildroot
Dear Jens Zettelmeyer,
On Fri, 6 Mar 2015 20:15:48 +0000, Jens Zettelmeyer wrote:
> Signed-off-by: Jens Zettelmeyer <zettelmeyerj@goooglemail.com>
> ---
> package/batctl/batctl.mk | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
Thanks for working on this. However, this isn't the right fix for the
problem: batctl uses pkg-config to discover how to link with libnl.
It's just that the libnl .pc files were not correct in terms of static
linking handling. Fixing those .pc files is a better solution, as it 1/
can be upstreamed to libnl, 2/ avoids hacks in batctl.mk, and 3/ allows
to also removes hacks in other Buildroot packages.
See the series I have sent at
http://lists.busybox.net/pipermail/buildroot/2015-March/121180.html.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] Fix batctl for static builds
2015-03-07 12:01 ` Thomas Petazzoni
@ 2015-03-07 12:27 ` Jens Zettelmeyer
0 siblings, 0 replies; 3+ messages in thread
From: Jens Zettelmeyer @ 2015-03-07 12:27 UTC (permalink / raw)
To: buildroot
Dear Thomas Petazzoni,
Thank you. I had a look at the libnl pkg-config patch. That makes a lot
more sense than what i did.
Thank you
Jens
2015-03-07 12:01 GMT+00:00 Thomas Petazzoni <
thomas.petazzoni@free-electrons.com>:
> Dear Jens Zettelmeyer,
>
> On Fri, 6 Mar 2015 20:15:48 +0000, Jens Zettelmeyer wrote:
> > Signed-off-by: Jens Zettelmeyer <zettelmeyerj@goooglemail.com>
> > ---
> > package/batctl/batctl.mk | 6 +++++-
> > 1 file changed, 5 insertions(+), 1 deletion(-)
>
> Thanks for working on this. However, this isn't the right fix for the
> problem: batctl uses pkg-config to discover how to link with libnl.
> It's just that the libnl .pc files were not correct in terms of static
> linking handling. Fixing those .pc files is a better solution, as it 1/
> can be upstreamed to libnl, 2/ avoids hacks in batctl.mk, and 3/ allows
> to also removes hacks in other Buildroot packages.
>
> See the series I have sent at
> http://lists.busybox.net/pipermail/buildroot/2015-March/121180.html.
>
> Thanks,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150307/9626da09/attachment.html>
^ permalink raw reply [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.