summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard PALO <richard@NetBSD.org>2015-02-13 19:17:54 +0100
committerAndras Timar <andras.timar@collabora.com>2015-02-23 10:35:50 +0100
commitb5c6bae95eed4df45617ec4cadda59088261a3a1 (patch)
tree0d8c1296a9e1ff8583e1d37f202df114e7047dd4
parentc5420c816f3977c5f4002d66561eef8111faecbe (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> (cherry picked from commit 34a167e1bf9b478069c290dbf977c68639149852) Signed-off-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit f081a415221bd8665cceebe91665e2253781b516)
-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 8256620e9aef..e4bc23b80858 100644
--- a/solenv/gbuild/platform/solaris.mk
+++ b/solenv/gbuild/platform/solaris.mk
@@ -131,11 +131,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 :=