X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=Makefile.real;h=e0296b1fe2f1909b785b6a329238e334d456168b;hp=b88de22533048979bcfef8f3396b7608297afb3b;hb=b287a53fa3e3dffb51febedebff6efb0d1065c2c;hpb=506845e0093b17b0854c8a4beb4f9f91f469bbce diff --git a/Makefile.real b/Makefile.real index b88de225..e0296b1f 100644 --- a/Makefile.real +++ b/Makefile.real @@ -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