]> git.sesse.net Git - stockfish/blobdiff - src/Makefile
Re-add link time optimization on OS X
[stockfish] / src / Makefile
index 9b8e926a5c73df6d9f283d638eb43824bd7b19a4..dbf8143576fdb642c1346b4eab067b7113c8738b 100644 (file)
@@ -271,14 +271,10 @@ ifeq ($(optimize),yes)
        endif
 
        ifeq ($(comp),clang)
-               ifeq ($(os),osx)
-                       # Clang on OS X supports LTO
-                       CXXFLAGS += -O4
-               else
-                       CXXFLAGS += -O3
-               endif
+               CXXFLAGS += -O3
 
                ifeq ($(os),osx)
+                       CXXFLAGS += -flto
                        ifeq ($(arch),i386)
                                CXXFLAGS += -mdynamic-no-pic
                        endif