From ddea172792d13516ff7e0dd43f1f78b74ade8914 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Sun, 5 May 2019 15:49:16 +0200 Subject: enable gdb-index also for liborcus and libwps if possible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- external/liborcus/ExternalProject_liborcus.mk | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'external/liborcus/ExternalProject_liborcus.mk') 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)') \ -- cgit