summaryrefslogtreecommitdiff
path: root/solenv/gbuild
diff options
context:
space:
mode:
authorRichard PALO <richard@NetBSD.org>2015-02-13 19:17:54 +0100
committerMichael Stahl <mstahl@redhat.com>2015-02-19 20:59:21 +0000
commit34a167e1bf9b478069c290dbf977c68639149852 (patch)
tree77821e1e417d10688b41bd04129cf278f9e189ab /solenv/gbuild
parentac06ab26389ef6910b9cd52001b56df2fdc5cef1 (diff)
Sun ld doesn't support -O1 optimize flag
reported by Gabriele Bulfon (gbulfon@sonicle) Change-Id: Ie0ff8fe296054a7a266b4c73c30938bb2b7353ea Reviewed-on: https://gerrit.libreoffice.org/14484 Tested-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'solenv/gbuild')
-rw-r--r--solenv/gbuild/platform/solaris.mk5
1 files changed, 1 insertions, 4 deletions
diff --git a/solenv/gbuild/platform/solaris.mk b/solenv/gbuild/platform/solaris.mk
index 78698db645bf..eef6826fafc7 100644
--- a/solenv/gbuild/platform/solaris.mk
+++ b/solenv/gbuild/platform/solaris.mk
@@ -83,11 +83,8 @@ gb_LinkTarget_LDFLAGS += \
endif
-ifneq ($(gb_DEBUGLEVEL),0)
+# sun ld doesn't understand -O1 optimize flag
gb_LINKEROPTFLAGS :=
-else
-gb_LINKEROPTFLAGS := -Wl,-O1
-endif
ifeq ($(gb_SYMBOL),$(true))
gb_LINKERSTRIPDEBUGFLAGS :=