summaryrefslogtreecommitdiff
path: root/solenv/gbuild/platform/unxgcc.mk
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-04-04 15:37:29 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-04-11 12:18:20 +0200
commite7a883994723d7002a92d777734aafefb2d18763 (patch)
treeedb56361764c1ffba7d3f441e6e58004e7127d5b /solenv/gbuild/platform/unxgcc.mk
parent8d19e03b17fdd6e6159843249fe0b4f41c526f17 (diff)
make linker flags conditional when used, not when defined
gb_LINKEROPTFLAGS and gb_LINKERSTRIPDEBUGFLAGS are only used by gb_LinkTarget__get_debugldflags, which already properly uses them depending on whether debuginfo is wanted or not Change-Id: I0befc10d6f1ee99ccd49a640241e3ae023454875 Reviewed-on: https://gerrit.libreoffice.org/70366 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'solenv/gbuild/platform/unxgcc.mk')
-rw-r--r--solenv/gbuild/platform/unxgcc.mk9
1 files changed, 0 insertions, 9 deletions
diff --git a/solenv/gbuild/platform/unxgcc.mk b/solenv/gbuild/platform/unxgcc.mk
index a84c095721ff..27edd2932589 100644
--- a/solenv/gbuild/platform/unxgcc.mk
+++ b/solenv/gbuild/platform/unxgcc.mk
@@ -83,17 +83,8 @@ endif
endif
endif
-ifneq ($(gb_DEBUGLEVEL),0)
-gb_LINKEROPTFLAGS :=
-else
gb_LINKEROPTFLAGS := -Wl,-O1
-endif
-
-ifeq ($(gb_SYMBOL),$(true))
-gb_LINKERSTRIPDEBUGFLAGS :=
-else
gb_LINKERSTRIPDEBUGFLAGS := -Wl,-S
-endif
# LinkTarget class