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@xxxxxxxxx> --- 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