diff mbox

[1/1] dbus: pthread static lib

Message ID 5250A34B.3060903@openwide.fr
State Accepted
Headers show

Commit Message

Romain Naour Oct. 5, 2013, 11:39 p.m. UTC
-lpthread is missing when dbus is build with static lib

fix build failure:
http://autobuild.buildroot.net/results/80a317e33afd1d5ba2f7dd9ecd89314b09b4b1fe/
http://autobuild.buildroot.net/results/2c3c040624652547bbeec363d7d6b03f2477ff00/
---
 package/dbus/dbus.mk | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Peter Korsgaard Oct. 6, 2013, 10:12 a.m. UTC | #1
>>>>> "Romain" == Romain Naour <romain.naour@openwide.fr> writes:

 Romain> -lpthread is missing when dbus is build with static lib
 Romain> fix build failure:
 Romain> http://autobuild.buildroot.net/results/80a317e33afd1d5ba2f7dd9ecd89314b09b4b1fe/
 Romain> http://autobuild.buildroot.net/results/2c3c040624652547bbeec363d7d6b03f2477ff00/

Thanks. You forgot your Signed-off-by tag. Can I add it?
Romain Naour Oct. 6, 2013, 10:36 a.m. UTC | #2
Yes, thanks.


Peter Korsgaard <jacmet@uclibc.org> a écrit :
>>>>>> "Romain" == Romain Naour <romain.naour@openwide.fr> writes:
>
> Romain> -lpthread is missing when dbus is build with static lib
> Romain> fix build failure:
>Romain>
>http://autobuild.buildroot.net/results/80a317e33afd1d5ba2f7dd9ecd89314b09b4b1fe/
>Romain>
>http://autobuild.buildroot.net/results/2c3c040624652547bbeec363d7d6b03f2477ff00/
>
>Thanks. You forgot your Signed-off-by tag. Can I add it?
>
>-- 
>Bye, Peter Korsgaard
Peter Korsgaard Oct. 6, 2013, 10:55 a.m. UTC | #3
>>>>> "Romain" == Romain Naour <romain.naour@openwide.fr> writes:

 Romain> Yes, thanks.

Ok, great - Committed, thanks.
diff mbox

Patch

diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk
index d50f630..e241247 100644
--- a/package/dbus/dbus.mk
+++ b/package/dbus/dbus.mk
@@ -30,6 +30,10 @@  DBUS_CONF_OPT = --with-dbus-user=dbus \
 		--with-system-socket=/var/run/dbus/system_bus_socket \
 		--with-system-pid-file=/var/run/messagebus.pid

+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+DBUS_CONF_OPT += LIBS='-lpthread'
+endif
+
 ifeq ($(BR2_microblaze),y)
 # microblaze toolchain doesn't provide inotify_rm_* but does have sys/inotify.h
 DBUS_CONF_OPT += --disable-inotify