summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2017-07-26 11:37:37 +0100
committerFrediano Ziglio <fziglio@redhat.com>2017-07-26 12:01:57 +0100
commit12a4f367d8964fe17ca4ce70a93d04cf9f885517 (patch)
tree2dd6558a0559d2f2b11c66bf2175cdc692b1e79c
parent6012db027c9788041b66eda85c98c829dbe2ce0b (diff)
Avoid using LTO by default during compilation
LTO option allows to have smaller executable stripping unneeded part of code. These options were added by a095f4806e ("build-sys: statically build agent"). The gain of using these options currently are quite small, from a small test: $ ll *.exe -rwxrwxr-x. 1 freddy freddy 506880 Jul 26 11:26 vdagent.exe -rwxrwxr-x. 1 freddy freddy 198656 Jul 26 11:26 vdservice.exe $ ll *.exe -rwxrwxr-x. 1 freddy freddy 509952 Jul 26 11:26 vdagent.exe -rwxrwxr-x. 1 freddy freddy 200192 Jul 26 11:26 vdservice.exe Considering that there are some bug in some recent MinGW distributions like https://bugzilla.redhat.com/show_bug.cgi?id=1475237 and the small gain I would disable these options. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
-rw-r--r--Makefile.am1
1 files changed, 0 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 411bf0d..38c8711 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,7 +4,6 @@ MAINTAINERCLEANFILES = mingw-spice-vdagent.spec
DIST_SUBDIRS = spice-protocol
-AM_CXXFLAGS = -flto -fwhole-program
AM_CPPFLAGS = \
-DUNICODE \
-D_UNICODE \