* [PATCH] wmediumd: add -lstdc++ for SANITIZE=1
@ 2020-03-23 20:43 Johannes Berg
0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2020-03-23 20:43 UTC (permalink / raw)
To: linux-wireless; +Cc: me, Johannes Berg
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(-)
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-23 20:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23 20:43 [PATCH] wmediumd: add -lstdc++ for SANITIZE=1 Johannes Berg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.