From: Johannes Berg <johannes.berg@xxxxxxxxx> It appears that in some scenarios this is necessary to get the right version of the library, otherwise some runtime linking can fail. Add -lstdc++ as required by -lasan. Fixes: 7d18a8609350 ("wmediumd: support compilation with asan/ubsan") --- Oops, sorry, should've tested this in all my environments before ... --- wmediumd/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wmediumd/Makefile b/wmediumd/Makefile index f75c4e8b4e3e..fa94eb01fbc2 100644 --- a/wmediumd/Makefile +++ b/wmediumd/Makefile @@ -56,7 +56,7 @@ OBJECTS += lib/uds.o lib/vhost.o lib/wallclock.o ifeq ($(SANITIZE),1) CFLAGS += -fsanitize=undefined,address # apparently these have to come first for some reason -override LDFLAGS := -lasan -lubsan $(LDFLAGS) +override LDFLAGS := -lasan -lubsan -lstdc++ $(LDFLAGS) endif all: wmediumd -- 2.25.1