X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=Makefile.real;h=e0296b1fe2f1909b785b6a329238e334d456168b;hb=b287a53fa3e3dffb51febedebff6efb0d1065c2c;hp=7d4eff4fe2eaecc99fb83627a154b9c1672118ca;hpb=5459ae27b1efa26a1a47186c754a0e4cb486a278;p=paraslash.git diff --git a/Makefile.real b/Makefile.real index 7d4eff4f..e0296b1f 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 := 2019 +COPYRIGHT_YEAR := 2021 ifeq ("$(origin O)", "command line") build_dir := $(O) @@ -129,6 +129,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