solenv/gbuild/platform/com_GCC_defs.mk |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 8aa125c0f27520d9c6938084f3fb4f97fefcc720
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Aug 10 16:57:06 2018 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sat Aug 11 17:50:10 2018 +0200

    when DISABLE_DYNLOADING gc linking
    
    Change-Id: Ifba1dd8e6cf095b965ed1277ce63505085f1d13c
    Reviewed-on: https://gerrit.libreoffice.org/58854
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

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 \
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to