From: Baruch Siach Date: Tue, 9 Jun 2015 14:20:09 +0000 (+0300) Subject: libxmlrpc: fix static build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22501805ed49902020d33d1bd72baba407d3a289;p=buildroot.git libxmlrpc: fix static build Fixes: http://autobuild.buildroot.net/results/16d/16de14ace7b4e089f56b9cb173542e487cae3a9d/ Signed-off-by: Baruch Siach Signed-off-by: Thomas Petazzoni --- diff --git a/package/libxmlrpc/libxmlrpc.mk b/package/libxmlrpc/libxmlrpc.mk index 7d11205a74..03a709597b 100644 --- a/package/libxmlrpc/libxmlrpc.mk +++ b/package/libxmlrpc/libxmlrpc.mk @@ -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))