X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=Makefile.real;h=6e8084d542b8888e2a838671b6a9be845ac2cae2;hb=d440a71683940a58747de6dc32643db452d9cf54;hp=140d8f311b81029a5fa01023ecfb33c0a94a2d19;hpb=56e54c8c75d59a8e5072451941aa56c727d99d26;p=paraslash.git diff --git a/Makefile.real b/Makefile.real index 140d8f31..6e8084d5 100644 --- a/Makefile.real +++ b/Makefile.real @@ -20,7 +20,7 @@ uname_s := $(shell uname -s 2>/dev/null || echo "UNKNOWN_OS") uname_rs := $(shell uname -rs) cc_version := $(shell $(CC) --version | head -n 1) GIT_VERSION := $(shell ./GIT-VERSION-GEN git-version.h) -COPYRIGHT_YEAR := 2021 +COPYRIGHT_YEAR := 2022 ifeq ("$(origin O)", "command line") build_dir := $(O) @@ -131,6 +131,11 @@ STRICT_CFLAGS += -Wno-sign-compare -Wno-unknown-pragmas STRICT_CFLAGS += -Wdeclaration-after-statement STRICT_CFLAGS += -Wformat -Wformat-security -Wmissing-format-attribute +ifeq ($(ENABLE_UBSAN), yes) + STRICT_CFLAGS += -fsanitize=undefined + LDFLAGS += -lubsan +endif + ifeq ($(uname_s),Linux) # these cause warnings on *BSD CPPFLAGS += -Wunused-macros