Message ID | 20200323214332.33b993c6e0a9.I3d0915b84d33b5a770cef1c1273bd33ac4e72d7b@changeid (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Johannes Berg |
Headers | show |
Series | wmediumd: add -lstdc++ for SANITIZE=1 | expand |
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
From: Johannes Berg <johannes.berg@intel.com> 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(-)