From: Sudip Mukherjee Date: Thu, 26 Dec 2019 22:31:30 +0000 (+0000) Subject: [PATCH 5/5] libtraceevent: Add dependency on libdl X-Git-Tag: archive/raspbian/5.9.6-1+rpi1^2^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=730ea807b67d1110e9321f4ffca5b481f9d6ef8b;p=linux.git [PATCH 5/5] libtraceevent: Add dependency on libdl Forwarded: https://lore.kernel.org/lkml/20191226224931.3458-1-sudipm.mukherjee@gmail.com/ event-plugin.c is calling dl_*() functions but it is not linked with libdl. As a result when we use ldd on the generated libtraceevent.so file, it does not list libdl as one of its dependencies. Add -ldl explicitly as done in tools/lib/lockdep. Signed-off-by: Sudip Mukherjee Gbp-Pq: Topic bugfix/all Gbp-Pq: Name 0005-libtraceevent-Add-dependency-on-libdl.patch --- diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile index c874c017c63..0d0575981cc 100644 --- a/tools/lib/traceevent/Makefile +++ b/tools/lib/traceevent/Makefile @@ -143,7 +143,7 @@ $(TE_IN): force $(Q)$(MAKE) $(build)=libtraceevent $(OUTPUT)libtraceevent.so.$(EVENT_PARSE_VERSION): $(TE_IN) - $(QUIET_LINK)$(CC) --shared $(LDFLAGS) $^ -Wl,-soname,libtraceevent.so.$(EP_VERSION) -o $@ + $(QUIET_LINK)$(CC) --shared $(LDFLAGS) $^ -ldl -Wl,-soname,libtraceevent.so.$(EP_VERSION) -o $@ @ln -sf $(@F) $(OUTPUT)libtraceevent.so @ln -sf $(@F) $(OUTPUT)libtraceevent.so.$(EP_VERSION)