From 7d1ff6b2ca84f853b00d87ad2f076105d3684fe9 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Fri, 28 May 2021 09:50:50 +0200 Subject: dhcp: must be build with -latomic on PPC Otherwise, building fails with: .../bin/ld: .../sysroot-target/usr/lib/libisc.a(stats.o): in function `isc_stats_increment': stats.c:(.text+0x51c): undefined reference to `__atomic_fetch_add_8' .../bin/ld: .../sysroot-target/usr/lib/libisc.a(stats.o): in function `isc_stats_decrement': stats.c:(.text+0x5dc): undefined reference to `__atomic_fetch_sub_8' .../bin/ld: .../sysroot-target/usr/lib/libisc.a(stats.o): in function `isc_stats_dump': stats.c:(.text+0x6f0): undefined reference to `__atomic_load_8' .../bin/ld: .../sysroot-target/usr/lib/libisc.a(stats.o): in function `isc_stats_set': stats.c:(.text+0x898): undefined reference to `__atomic_store_8' .../bin/ld: .../sysroot-target/usr/lib/libisc.a(stats.o): in function `isc_stats_update_if_greater': stats.c:(.text+0x968): undefined reference to `__atomic_load_8' .../bin/ld: stats.c:(.text+0x99c): undefined reference to `__atomic_compare_exchange_8' .../bin/ld: .../sysroot-target/usr/lib/libisc.a(stats.o): in function `isc_stats_get_counter': stats.c:(.text+0xad0): undefined reference to `__atomic_load_8' Signed-off-by: Michael Olbrich --- rules/dhcp.make | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rules/dhcp.make b/rules/dhcp.make index 5cdc7be21..48ff6f0d2 100644 --- a/rules/dhcp.make +++ b/rules/dhcp.make @@ -71,6 +71,12 @@ DHCP_CONF_OPT := \ --without-ldap-gssapi \ --without-ldapcasa +ifdef PTXCONF_ARCH_PPC +DHCP_CONF_ENV := \ + $(CROSS_ENV) \ + LIBS=-latomic +endif + # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- -- cgit v1.2.3