summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-08-10 16:57:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-08-11 17:50:10 +0200
commit8aa125c0f27520d9c6938084f3fb4f97fefcc720 (patch)
treeba1f1483a0ab839eb6323d5f48f9f1b9362f8535 /solenv
parentd99af1a67cbe4e23661467843e7d72194b45b313 (diff)
when DISABLE_DYNLOADING gc linking
Change-Id: Ifba1dd8e6cf095b965ed1277ce63505085f1d13c Reviewed-on: https://gerrit.libreoffice.org/58854 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/platform/com_GCC_defs.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk
index 25bb4bdf6889..057ef8fd5762 100644
--- a/solenv/gbuild/platform/com_GCC_defs.mk
+++ b/solenv/gbuild/platform/com_GCC_defs.mk
@@ -94,6 +94,12 @@ gb_LinkTarget_LDFLAGS += -fprofile-arcs -lgcov
gb_COMPILEROPTFLAGS := -O0
endif
+ifeq ($(DISABLE_DYNLOADING),TRUE)
+gb_CFLAGS_COMMON += -ffunction-sections -fdata-sections
+gb_CXXFLAGS_COMMON += -ffunction-sections -fdata-sections
+gb_LinkTarget_LDFLAGS += -Wl,--gc-sections
+endif
+
ifeq ($(shell expr '$(GCC_VERSION)' '>=' 600),1)
gb_CFLAGS_COMMON += \
-Wduplicated-cond \