libmpdclient: fix static linking
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 11 Mar 2018 13:42:30 +0000 (14:42 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 11 Mar 2018 21:14:46 +0000 (22:14 +0100)
Fixes:
 - http://autobuild.buildroot.net/results/45208e51814b777a5a133b0e345e800ee51d8a53

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libmpdclient/libmpdclient.mk

index 3ab8e9884c01d4a9061be6d4bec039d3ab1ca7c1..a399516fe376f517b393a3506a1768b18f5c6f24 100644 (file)
@@ -16,6 +16,7 @@ LIBMPDCLIENT_DEPENDENCIES = host-meson
 LIBMPDCLIENT_CONF_OPTS += \
        --prefix=/usr \
        --libdir=/usr/lib \
+       --default-library $(if $(BR2_STATIC_LIBS),static,shared) \
        --buildtype $(if $(BR2_ENABLE_DEBUG),debug,release) \
        --cross-file $(HOST_DIR)/etc/meson/cross-compilation.conf