diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2020-01-18 15:44:45 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2020-01-18 16:55:55 +0100 |
commit | 4a93a7954e49b42b0e23a9ca8d962b6d4614b005 (patch) | |
tree | 8615c692d11782e7175d4d51a71232329425301d /solenv | |
parent | 0d2084e198717301da0678eae311f10e6a9c5d78 (diff) |
use -Wl,-dead_strip on Mac, its linker doesn't know -Wl,--gc-sections
Change-Id: Ic69d0030a46fe4753cc75da58bb2c15cf009b135
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87023
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/com_GCC_class.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/gbuild/platform/com_GCC_class.mk b/solenv/gbuild/platform/com_GCC_class.mk index f40d315b1c3b..12ae0a21537e 100644 --- a/solenv/gbuild/platform/com_GCC_class.mk +++ b/solenv/gbuild/platform/com_GCC_class.mk @@ -95,7 +95,7 @@ gb_PrecompiledHeader_pch_with_obj = $(BUILDING_PCH_WITH_OBJ) ifneq ($(BUILDING_PCH_WITH_OBJ),) # If using Clang's PCH extra object, we may need to strip unused sections, otherwise inline and template functions # emitted in that object may in some cases cause unresolved references to private symbols in other libraries. -gb_LinkTarget_LDFLAGS += -Wl,--gc-sections +gb_LinkTarget_LDFLAGS += $(LD_GC_SECTIONS) gb_PrecompiledHeader_pch_with_obj += -ffunction-sections -fdata-sections # Enable generating more shared code and debuginfo in the PCH object file. gb_PrecompiledHeader_pch_with_obj += $(PCH_MODULES_DEBUGINFO) |