summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2021-05-28 09:50:50 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2021-05-28 09:50:52 +0200
commit7d1ff6b2ca84f853b00d87ad2f076105d3684fe9 (patch)
treef546ae911ca4ce6507cff991ebf77b2ff491925b
parent901ce9c0705ff75cfa1f8a43af733e197fe6ce5d (diff)
downloadptxdist-7d1ff6b2ca84f853b00d87ad2f076105d3684fe9.tar.gz
ptxdist-7d1ff6b2ca84f853b00d87ad2f076105d3684fe9.tar.xz
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 <m.olbrich@pengutronix.de>
-rw-r--r--rules/dhcp.make6
1 files changed, 6 insertions, 0 deletions
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
# ----------------------------------------------------------------------------