fix atomic for macppc base-clang

This commit is contained in:
sthen 2020-04-06 22:10:30 +00:00
parent fe051219e0
commit b0a0272a53
3 changed files with 5 additions and 12 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.44 2020/03/26 09:47:30 sthen Exp $
# $OpenBSD: Makefile,v 1.45 2020/04/06 22:10:30 sthen Exp $
PORTROACH= limit:^3\.
@ -169,13 +169,6 @@ MAKE_FLAGS= PACKAGE=openbsd VERBOSE=1
FAKE_FLAGS= VERBOSE=1 R=${WRKINST} \
raddbdir=${PREFIX}/share/examples/freeradius
.if ${MACHINE_ARCH} == "powerpc"
LDFLAGS += -latomic
.for i in ${MULTI_PACKAGES}
WANTLIB$i += atomic
.endfor
.endif
post-configure:
sed -i -e 's,/etc/raddb,${SYSCONFDIR}/raddb,g' ${WRKSRC}/man/*/*
sed -i -e 's,/usr/local,${TRUEPREFIX},g' ${WRKSRC}/doc/README

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.100 2020/03/10 21:23:06 sthen Exp $
# $OpenBSD: Makefile,v 1.101 2020/04/06 22:10:30 sthen Exp $
COMMENT-main = network monitoring system
COMMENT-mysql = MySQL support for icinga2
@ -82,7 +82,7 @@ CONFIGURE_ARGS += \
-DHAVE_LIBEXECINFO=OFF
# Fix "undefined reference to `__atomic_fetch_sub_8'"
.if ${MACHINE_ARCH:Mpowerpc} || ${MACHINE_ARCH:Mhppa}
.if ${MACHINE_ARCH:Mhppa}
WANTLIB += atomic
CONFIGURE_ENV += LDFLAGS="${LDFLAGS} -latomic"
.endif

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.113 2020/03/19 19:05:22 sthen Exp $
# $OpenBSD: Makefile,v 1.114 2020/04/06 22:10:30 sthen Exp $
COMMENT= Berkeley Internet Name Daemon: DNS server and tools
@ -64,7 +64,7 @@ CONFIGURE_ARGS= --enable-full-report \
COMPILER= base-clang ports-gcc
COMPILER_LANGS= c
.if ${MACHINE_ARCH:Mpowerpc} || ${MACHINE_ARCH:Mhppa}
.if ${MACHINE_ARCH:Mhppa}
WANTLIB += atomic
LIB_DEPENDS += ${MODGCC4_CPPLIBDEP}
MAKE_FLAGS += LDFLAGS="${LDFLAGS} -latomic"