From: Romain Naour Date: Sat, 5 Oct 2013 23:39:55 +0000 (+0200) Subject: dbus: fix static linking issue with pthread X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=561fb5f702cd84c6953803d44d1ce1204e85412f;p=buildroot.git dbus: fix static linking issue with pthread -lpthread is missing when dbus is build with static lib Fixes build failures: http://autobuild.buildroot.net/results/80a317e33afd1d5ba2f7dd9ecd89314b09b4b1fe/ http://autobuild.buildroot.net/results/2c3c040624652547bbeec363d7d6b03f2477ff00/ Signed-off-by: Romain Naour Signed-off-by: Peter Korsgaard --- diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk index d50f6309cb..e2412478b5 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