X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;h=efca3947ee95aaf762f495fc470ec7d5221f11a4;hp=16eb9c5535404e7e8217ea02d95853e1d1c682cd;hb=e5da0e4b79b405da5bdc42f6fb4c2ba49afba00a;hpb=e53774bc49dd0aaa1c129ee98c09e1a56ef974fb diff --git a/src/Makefile b/src/Makefile index 16eb9c55..efca3947 100644 --- a/src/Makefile +++ b/src/Makefile @@ -162,7 +162,7 @@ ifeq ($(COMP),mingw) comp=mingw CXX=g++ CXXFLAGS += -Wextra -Wshadow - LDFLAGS += -static-libstdc++ -static-libgcc + LDFLAGS += -static endif ifeq ($(COMP),icc) @@ -308,12 +308,8 @@ endif ifeq ($(comp),gcc) ifeq ($(optimize),yes) ifeq ($(debug),no) - GCC_MAJOR := `$(CXX) -dumpversion | cut -f1 -d.` - GCC_MINOR := `$(CXX) -dumpversion | cut -f2 -d.` - ifeq (1,$(shell expr \( $(GCC_MAJOR) \> 4 \) \| \( $(GCC_MAJOR) \= 4 \& $(GCC_MINOR) \>= 5 \))) - CXXFLAGS += -flto - LDFLAGS += $(CXXFLAGS) - endif + CXXFLAGS += -flto + LDFLAGS += $(CXXFLAGS) endif endif endif