Kaydet (Commit) e7a88399 authored tarafından Luboš Luňák's avatar Luboš Luňák

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: 's avatarLuboš Luňák <l.lunak@collabora.com>
üst 8d19e03b
......@@ -86,12 +86,7 @@ endif
# sun ld doesn't understand -O1 optimize flag
gb_LINKEROPTFLAGS :=
ifeq ($(gb_SYMBOL),$(true))
gb_LINKERSTRIPDEBUGFLAGS :=
else
gb_LINKERSTRIPDEBUGFLAGS := -Wl,-zredlocsym -Wl,-znoldynsym
endif
# LinkTarget class
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment