libxmlrpc: fix static build
authorBaruch Siach <baruch@tkos.co.il>
Tue, 9 Jun 2015 14:20:09 +0000 (17:20 +0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 11 Jul 2015 08:50:42 +0000 (10:50 +0200)
Fixes:
http://autobuild.buildroot.net/results/16d/16de14ace7b4e089f56b9cb173542e487cae3a9d/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libxmlrpc/libxmlrpc.mk

index 7d11205a744dc97a56d6b5aad4343a2300eec6df..03a709597bc7bb08a98439880af6a21982b1155d 100644 (file)
@@ -35,4 +35,14 @@ LIBXMLRPC_MAKE_ENV = \
        CFLAGS_FOR_BUILD="$(HOST_CFLAGS)" \
        LDFLAGS_FOR_BUILD="$(HOST_LDFLAGS)"
 
+ifeq ($(BR2_STATIC_LIBS),y)
+LIBXMLRPC_STATIC_OPTS = SHARED_LIB_TYPE=NONE MUST_BUILD_SHLIB=N
+endif
+
+LIBXMLRPC_MAKE_OPTS = $(LIBXMLRPC_STATIC_OPTS)
+LIBXMLRPC_INSTALL_STAGING_OPTS = $(LIBXMLRPC_STATIC_OPTS) \
+       DESTDIR=$(STAGING_DIR) install
+LIBXMLRPC_INSTALL_TARGET_OPTS = $(LIBXMLRPC_STATIC_OPTS) \
+       DESTDIR=$(TARGET_DIR) install
+
 $(eval $(autotools-package))