cmus, isc-dhcp: don't require `-latomic' anymore on powerpc, since

this arch has been switched to clang

OK danj@ jca@
This commit is contained in:
cwen 2020-04-06 22:56:29 +00:00
parent 3d42d58ebf
commit 99c6d0944b
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.24 2020/02/14 11:11:32 sthen Exp $
# $OpenBSD: Makefile,v 1.25 2020/04/06 22:56:29 cwen Exp $
COMMENT-main= ncurses-based music player
COMMENT-ffmpeg= ffmpeg input plugin for cmus (.aac, .mp4...)
@ -76,7 +76,7 @@ CONFIGURE_ARGS= prefix=${PREFIX} \
NO_TEST= Yes
# undefined reference to `__atomic_fetch_add_8'
.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "hppa"
.if ${MACHINE_ARCH} == "hppa"
WANTLIB-main += atomic
WANTLIB-ffmpeg += atomic
LDFLAGS += -latomic

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.56 2020/02/12 13:59:48 cwen Exp $
# $OpenBSD: Makefile,v 1.57 2020/04/06 22:56:29 cwen Exp $
COMMENT-main= ISC DHCP Server
COMMENT-client= ISC DHCP Client
@ -43,7 +43,7 @@ EXAMPLEDIR= share/examples/isc-dhcp
MAKE_ENV += CC='${CC}'
# Fix "undefined reference to `__atomic_store_8'"
.if ${MACHINE_ARCH:Mpowerpc} || ${MACHINE_ARCH:Mhppa}
.if ${MACHINE_ARCH:Mhppa}
WANTLIB += atomic
LIB_DEPENDS += lang/gcc/${MODGCC4_VERSION},-libs
MAKE_FLAGS += LDFLAGS="${LDFLAGS} -latomic"