X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2FMakefile;h=406f029f39747b88100b85459bd0f208a2ef44da;hb=ad926d34c0105d523bfa5cb92cbcf9f337d54c08;hp=5e2637729a192f6b32d14eb12ee3f7b2a021371d;hpb=939b694bfda27017c34a8cdccc81f2bb2ef44079;p=stockfish diff --git a/src/Makefile b/src/Makefile index 5e263772..406f029f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,5 +1,5 @@ # Stockfish, a UCI chess playing engine derived from Glaurung 2.1 -# Copyright (C) 2004-2021 The Stockfish developers (see AUTHORS file) +# Copyright (C) 2004-2022 The Stockfish developers (see AUTHORS file) # # Stockfish is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -522,11 +522,17 @@ ifeq ($(optimize),yes) endif endif - ifeq ($(comp),$(filter $(comp),gcc clang icc)) - ifeq ($(KERNEL),Darwin) - CXXFLAGS += -mdynamic-no-pic - endif - endif + ifeq ($(KERNEL),Darwin) + ifeq ($(comp),$(filter $(comp),clang icc)) + CXXFLAGS += -mdynamic-no-pic + endif + + ifeq ($(comp),gcc) + ifneq ($(arch),arm64) + CXXFLAGS += -mdynamic-no-pic + endif + endif + endif ifeq ($(comp),clang) CXXFLAGS += -fexperimental-new-pass-manager