linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [libgpiod][PATCH 1/1] dbus: manager: fix linker not finding libgpiod.so
@ 2024-10-30 16:49 Boerge Struempfel
  2024-11-04  9:38 ` Bartosz Golaszewski
  0 siblings, 1 reply; 6+ messages in thread
From: Boerge Struempfel @ 2024-10-30 16:49 UTC (permalink / raw)
  To: linux-gpio, Bartosz Golaszewski; +Cc: Boerge Struempfel, Boerge Struempfel

When crosscompiling, the linker isn't finding libpgiod.so while linking
the manager to libgpiod-glib.so.

In order to fix this issue, we manually force the linker to look in
the corresponding folder for needed shared libraries, when building the
manager.

Signed-off-by: Boerge Struempfel <boerge.struempfel@gmail.com>
---
 dbus/manager/Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dbus/manager/Makefile.am b/dbus/manager/Makefile.am
index d1cef8e..32c9e30 100644
--- a/dbus/manager/Makefile.am
+++ b/dbus/manager/Makefile.am
@@ -9,6 +9,7 @@ AM_CFLAGS += -DG_LOG_DOMAIN=\"gpio-manager\"
 AM_CFLAGS += $(PROFILING_CFLAGS)
 AM_LDFLAGS = $(GLIB_LIBS) $(GIO_LIBS) $(GIO_UNIX_LIBS) $(GUDEV_LIBS)
 AM_LDFLAGS += $(PROFILING_LDFLAGS)
+AM_LDFLAGS += -Wl,-rpath,$(top_builddir)/lib/.libs
 LDADD = $(top_builddir)/bindings/glib/libgpiod-glib.la
 LDADD += $(top_builddir)/dbus/lib/libgpiodbus.la
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-02-07 15:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-30 16:49 [libgpiod][PATCH 1/1] dbus: manager: fix linker not finding libgpiod.so Boerge Struempfel
2024-11-04  9:38 ` Bartosz Golaszewski
2024-11-04 11:18   ` Börge Strümpfel
2025-02-05 23:46     ` Börge Strümpfel
2025-02-06  8:48       ` Bartosz Golaszewski
2025-02-07 15:45         ` Börge Strümpfel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).