projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
662d185
)
Fix link time optimization gcc option
author
Auguste Pop
<auguste@gmail.com>
Wed, 4 Jan 2012 10:01:12 +0000 (18:01 +0800)
committer
Marco Costalba
<mcostalba@gmail.com>
Sun, 22 Jan 2012 20:58:42 +0000 (21:58 +0100)
The previous line, LDFLAGS += $(CXXFLAGS), does not make sense, and
breaks profile-build, thus changing it into: LDFLAGS += -flto.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/Makefile
patch
|
blob
|
history
diff --git
a/src/Makefile
b/src/Makefile
index
b4ecee3
..
623c20b
100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-319,7
+319,7
@@
ifeq ($(comp),gcc)
GCC_MINOR := `$(CXX) -dumpversion | cut -f2 -d.`
ifeq (1,$(shell expr \( $(GCC_MAJOR) \> 4 \) \| \( $(GCC_MAJOR) \= 4 \& $(GCC_MINOR) \>= 5 \)))
CXXFLAGS += -flto
- LDFLAGS += $(CXXFLAGS)
+ LDFLAGS += -flto
endif
endif