diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2019-05-05 15:49:16 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2019-05-06 10:33:18 +0200 |
commit | ddea172792d13516ff7e0dd43f1f78b74ade8914 (patch) | |
tree | d874b4bec1023771f27ab29e6841cd273422df05 /external/liborcus/ExternalProject_liborcus.mk | |
parent | b9afb9959c31c3c57d0f2fe91107a92abfd82cdb (diff) |
enable gdb-index also for liborcus and libwps if possible
These are larger C++ libs and without gdb-index gdb takes a moment
to load such libs.
Change-Id: I555a629199f761060199a528415f7d5fbe9d9533
Reviewed-on: https://gerrit.libreoffice.org/71822
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'external/liborcus/ExternalProject_liborcus.mk')
-rw-r--r-- | external/liborcus/ExternalProject_liborcus.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/external/liborcus/ExternalProject_liborcus.mk b/external/liborcus/ExternalProject_liborcus.mk index f1e82f54f4f7..8cc1c030fa98 100644 --- a/external/liborcus/ExternalProject_liborcus.mk +++ b/external/liborcus/ExternalProject_liborcus.mk @@ -82,6 +82,14 @@ ifeq ($(OS),LINUX) liborcus_LDFLAGS+=-Wl,-z,origin -Wl,-rpath,\$$$$ORIGIN endif +ifeq ($(ENABLE_GDB_INDEX),TRUE) +liborcus_LDFLAGS+=-Wl,--gdb-index +liborcus_CXXFLAGS+=-ggnu-pubnames +ifneq ($(USE_LD),) +liborcus_LDFLAGS += -fuse-ld=$(USE_LD) +endif +endif + $(call gb_ExternalProject_get_state_target,liborcus,build) : $(call gb_ExternalProject_run,build,\ $(if $(liborcus_LIBS),LIBS='$(liborcus_LIBS)') \ |