summaryrefslogtreecommitdiff
path: root/external/libwpg
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-12-30 15:27:41 +0200
committerTor Lillqvist <tml@collabora.com>2014-12-30 16:30:31 +0200
commitb5a375236bd5ccdb0f1397ef734b2d3fbe86ad37 (patch)
treee7c89372c7bfe1ea3aa5c1d86ccb60f650e94a70 /external/libwpg
parent468474953847859e7ff707b5cbe87a443c00aed6 (diff)
Build external libs statically in the DISABLE_DYNLOADING case
Fixes build for iOS. In theory, it is a bit unclear whether DISABLE_DYNLOADING means to 1) not build any dynamic libraries at all, not even of bundled 3rd-party libraries, or 2) not build any own dynamic libraries, including dynamically loaded UNO components, while still building 3rd-party libraries as dynamic. But in practice, a use case for the latter is nonexistent, nobody uses --disable-dynamic-loading in their autogen.input, and DISABLE_DYNLOADING is turned on automatically for iOS and Android. What we want for iOS, for an LO-based app, is to not build any dynamic libraries at all, but produce a single executable. Correspondingly for Android, at least currently, we want to produce a single dynamic library. Change-Id: I7af4c3e53b13439612bb57bbb0fc8b118bda96bd
Diffstat (limited to 'external/libwpg')
-rw-r--r--external/libwpg/ExternalProject_libwpg.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/external/libwpg/ExternalProject_libwpg.mk b/external/libwpg/ExternalProject_libwpg.mk
index 6375c17c1911..fab201c3df4a 100644
--- a/external/libwpg/ExternalProject_libwpg.mk
+++ b/external/libwpg/ExternalProject_libwpg.mk
@@ -25,8 +25,9 @@ $(call gb_ExternalProject_get_state_target,libwpg,build) :
export PKG_CONFIG="" \
&& MAKE=$(MAKE) ./configure \
--with-pic \
- --enable-shared \
- --disable-static \
+ $(if $(DISABLE_DYNLOADING), \
+ --disable-shared --enable-static, \
+ --enable-shared --disable-static) \
--without-docs \
--disable-tools \
--disable-debug \