X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2FMakefile;h=935445e052b9cca92eb6469fb82311642de75af6;hb=a90fc4c877b39769ebdf227b3124008ec394ad3d;hp=cdedd25d0da4cb5747594ffd17ec4efad4759067;hpb=bf51b4796abd400648ba751fe545fd1785232a6b;p=stockfish diff --git a/src/Makefile b/src/Makefile index cdedd25d..935445e0 100644 --- a/src/Makefile +++ b/src/Makefile @@ -264,7 +264,8 @@ endif ### 3.2.2 Debugging with undefined behavior sanitizers ifeq ($(sanitize),yes) - CXXFLAGS += -g3 -fsanitize=undefined + CXXFLAGS += -g3 -fsanitize=undefined + LDFLAGS += -fsanitize=undefined endif ### 3.3 Optimization @@ -472,6 +473,7 @@ config-sanity: @echo "" @echo "Config:" @echo "debug: '$(debug)'" + @echo "sanitize: '$(sanitize)'" @echo "optimize: '$(optimize)'" @echo "arch: '$(arch)'" @echo "bits: '$(bits)'" @@ -490,6 +492,7 @@ config-sanity: @echo "Testing config sanity. If this fails, try 'make help' ..." @echo "" @test "$(debug)" = "yes" || test "$(debug)" = "no" + @test "$(sanitize)" = "yes" || test "$(sanitize)" = "no" @test "$(optimize)" = "yes" || test "$(optimize)" = "no" @test "$(arch)" = "any" || test "$(arch)" = "x86_64" || test "$(arch)" = "i386" || \ test "$(arch)" = "ppc64" || test "$(arch)" = "ppc" || test "$(arch)" = "armv7"