X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;h=16eb9c5535404e7e8217ea02d95853e1d1c682cd;hp=8622be3206291abd014304d14007049e762bbcd2;hb=8fcaa78a042edd3f2ad1971e2e861aebab1379a4;hpb=0da7295795448fc826cb5b2613ac64a6e0c4adcd diff --git a/src/Makefile b/src/Makefile index 8622be32..16eb9c55 100644 --- a/src/Makefile +++ b/src/Makefile @@ -151,7 +151,11 @@ ifeq ($(COMP),gcc) comp=gcc CXX=g++ CXXFLAGS += -pedantic -Wno-long-long -Wextra -Wshadow - LDFLAGS += -Wl,--no-as-needed + ifneq ($(UNAME),Darwin) + LDFLAGS += -Wl,--no-as-needed + else + LDFLAGS += -Wl + endif endif ifeq ($(COMP),mingw) @@ -189,8 +193,8 @@ else endif ifeq ($(UNAME),Darwin) - CXXFLAGS += -arch $(arch) -mmacosx-version-min=10.10 - LDFLAGS += -arch $(arch) -mmacosx-version-min=10.10 + CXXFLAGS += -arch $(arch) -mmacosx-version-min=10.9 + LDFLAGS += -arch $(arch) -mmacosx-version-min=10.9 endif ### On mingw use Windows threads, otherwise POSIX