mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 16:47:37 +00:00
Remove check for gcc version from Makefile.
This check is obsolete. very old gcc versions can't compile c++11 code. No functional change Resolves #285
This commit is contained in:
+2
-6
@@ -308,12 +308,8 @@ endif
|
|||||||
ifeq ($(comp),gcc)
|
ifeq ($(comp),gcc)
|
||||||
ifeq ($(optimize),yes)
|
ifeq ($(optimize),yes)
|
||||||
ifeq ($(debug),no)
|
ifeq ($(debug),no)
|
||||||
GCC_MAJOR := `$(CXX) -dumpversion | cut -f1 -d.`
|
CXXFLAGS += -flto
|
||||||
GCC_MINOR := `$(CXX) -dumpversion | cut -f2 -d.`
|
LDFLAGS += $(CXXFLAGS)
|
||||||
ifeq (1,$(shell expr \( $(GCC_MAJOR) \> 4 \) \| \( $(GCC_MAJOR) \= 4 \& $(GCC_MINOR) \>= 5 \)))
|
|
||||||
CXXFLAGS += -flto
|
|
||||||
LDFLAGS += $(CXXFLAGS)
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user