Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/procps-ng: fix build with BR2_PACKAGE_SYSTEMD enabled
@ 2024-09-12 16:22 Jan Čermák
  2024-09-12 17:33 ` Yann E. MORIN
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Čermák @ 2024-09-12 16:22 UTC (permalink / raw)
  To: buildroot; +Cc: Jan Čermák

After update to v4.0.4, props-ng build fails on linker error if
BR2_PACKAGE_SYSTEMD is enabled:

/buildroot/output/host/lib/gcc/x86_64-buildroot-linux-gnu/13.3.0/../../../../x86_64-buildroot-linux-gnu/bin/ld: src/w.o: undefined reference to symbol 'sd_session_get_uid@@LIBSYSTEMD_209'
/buildroot/output/host/lib/gcc/x86_64-buildroot-linux-gnu/13.3.0/../../../../x86_64-buildroot-linux-gnu/bin/ld: /buildroot/output/host/x86_64-buildroot-linux-gnu/sysroot/usr/lib64/libsystemd.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

Add lsystemd to configure arguments if systemd is enabled to fix this.

Signed-off-by: Jan Čermák <sairon@sairon.cz>
---
 package/procps-ng/procps-ng.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/procps-ng/procps-ng.mk b/package/procps-ng/procps-ng.mk
index 2f28e3571e..cff4e21c5e 100644
--- a/package/procps-ng/procps-ng.mk
+++ b/package/procps-ng/procps-ng.mk
@@ -12,11 +12,13 @@ PROCPS_NG_LICENSE_FILES = COPYING COPYING.LIB
 PROCPS_NG_CPE_ID_VALID = YES
 PROCPS_NG_INSTALL_STAGING = YES
 PROCPS_NG_DEPENDENCIES = ncurses host-pkgconf $(TARGET_NLS_DEPENDENCIES)
-PROCPS_NG_CONF_OPTS = LIBS=$(TARGET_NLS_LIBS)
+PROCPS_NG_CONF_OPTS = LIBS="$(PROCPS_NG_LIBS)"
+PROCPS_NG_LIBS=$(TARGET_NLS_LIBS)
 
 ifeq ($(BR2_PACKAGE_SYSTEMD),y)
 PROCPS_NG_DEPENDENCIES += systemd
 PROCPS_NG_CONF_OPTS += --with-systemd
+PROCPS_NG_LIBS += -lsystemd
 else
 PROCPS_NG_CONF_OPTS += --without-systemd
 endif
-- 
2.46.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2024-09-14 22:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-12 16:22 [Buildroot] [PATCH 1/1] package/procps-ng: fix build with BR2_PACKAGE_SYSTEMD enabled Jan Čermák
2024-09-12 17:33 ` Yann E. MORIN
2024-09-12 17:44   ` Yann E. MORIN
2024-09-14 22:16     ` Jan Čermák

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox