mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 06:17:49 +00:00
Revert "Fix link time optimization gcc option"
It seems we need to pass the full optimization flags to the linker otherwise we end up in a slow compile: http://lists.debian.org/debian-devel/2011/06/msg00181.html Regression reported by Benigno Hernandez. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+1
-1
@@ -319,7 +319,7 @@ ifeq ($(comp),gcc)
|
|||||||
GCC_MINOR := `$(CXX) -dumpversion | cut -f2 -d.`
|
GCC_MINOR := `$(CXX) -dumpversion | cut -f2 -d.`
|
||||||
ifeq (1,$(shell expr \( $(GCC_MAJOR) \> 4 \) \| \( $(GCC_MAJOR) \= 4 \& $(GCC_MINOR) \>= 5 \)))
|
ifeq (1,$(shell expr \( $(GCC_MAJOR) \> 4 \) \| \( $(GCC_MAJOR) \= 4 \& $(GCC_MINOR) \>= 5 \)))
|
||||||
CXXFLAGS += -flto
|
CXXFLAGS += -flto
|
||||||
LDFLAGS += -flto
|
LDFLAGS += $(CXXFLAGS)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user