diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-12-30 15:27:41 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-12-30 16:30:31 +0200 |
commit | b5a375236bd5ccdb0f1397ef734b2d3fbe86ad37 (patch) | |
tree | e7c89372c7bfe1ea3aa5c1d86ccb60f650e94a70 /external/libwpd | |
parent | Access2Base - CommandBars collection - show/hide toolbars (diff) | |
download | core-b5a375236bd5ccdb0f1397ef734b2d3fbe86ad37.tar.gz core-b5a375236bd5ccdb0f1397ef734b2d3fbe86ad37.zip |
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/libwpd')
-rw-r--r-- | external/libwpd/ExternalProject_libwpd.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/external/libwpd/ExternalProject_libwpd.mk b/external/libwpd/ExternalProject_libwpd.mk index 5c0f49d0b346..ce60e892db61 100644 --- a/external/libwpd/ExternalProject_libwpd.mk +++ b/external/libwpd/ExternalProject_libwpd.mk @@ -24,8 +24,9 @@ $(call gb_ExternalProject_get_state_target,libwpd,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 \ |