Skip to content

Commit f6c4273

Browse files
committed
[Fix] build: Makefile: Clang: Build with sanitizer shared library instead of static library.
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22947 56274372-70c3-4bfc-bfc3-4c3a0b034d27
1 parent 3f141f1 commit f6c4273

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build/make/config-clang.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ LDFLAGS += -Wl,--thinlto-jobs=all
5959
endif
6060

6161
ifeq ($(CHECKED_ADDRESS),1)
62-
CXXFLAGS += -fsanitize=address
63-
CFLAGS += -fsanitize=address
62+
CXXFLAGS += -fsanitize=address -shared-libsan
63+
CFLAGS += -fsanitize=address -shared-libsan
6464
endif
6565

6666
ifeq ($(CHECKED_UNDEFINED),1)
67-
CXXFLAGS += -fsanitize=undefined
68-
CFLAGS += -fsanitize=undefined
67+
CXXFLAGS += -fsanitize=undefined -shared-libsan
68+
CFLAGS += -fsanitize=undefined -shared-libsan
6969
endif
7070

7171
include build/make/warnings-clang.mk

0 commit comments

Comments
 (0)