commit: af7f9e4e6383822de9d5b9c4f462041927cfc83f Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> AuthorDate: Thu Feb 25 01:27:40 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Feb 25 01:27:40 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af7f9e4e
net-misc/dhcp: fix 32-bit build with libatomic (ppc, arm, ...) Bug: https://bugs.gentoo.org/720806 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> Signed-off-by: Sam James <sam <AT> gentoo.org> net-misc/dhcp/dhcp-4.4.2-r3.ebuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/net-misc/dhcp/dhcp-4.4.2-r3.ebuild b/net-misc/dhcp/dhcp-4.4.2-r3.ebuild index b123e346e37..0aef829c93b 100644 --- a/net-misc/dhcp/dhcp-4.4.2-r3.ebuild +++ b/net-misc/dhcp/dhcp-4.4.2-r3.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit systemd toolchain-funcs +inherit systemd toolchain-funcs flag-o-matic MY_PV="${PV//_alpha/a}" MY_PV="${MY_PV//_beta/b}" @@ -162,6 +162,11 @@ src_configure() { #define _PATH_DHCRELAY6_PID "${r}/dhcrelay6.pid" EOF + # https://bugs.gentoo.org/720806 + if use ppc || use arm || use hppa; then + append-libs -latomic + fi + local myeconfargs=( --enable-paranoia --enable-early-chroot @@ -170,6 +175,7 @@ src_configure() { $(use_enable ipv6 dhcpv6) $(use_with ldap) $(use ldap && use_with ssl ldapcrypto || echo --without-ldapcrypto) + LIBS="${LIBS}" ) econf "${myeconfargs[@]}"
