Hi ports,

> http://build-failures.rhaalovely.net//powerpc/2019-02-04/net/bro.log

It requires libatomic. According to what i read in the ports tree, hppa
would need that as well, so i added it.

It builds fine on macppc [1], i've seen nothing wrong during runtime as
well, but i've nothing fancy to monitor tbh.

Any comments? 

Charlène. 

[1] http://ix.io/1CxH


Index: Makefile
===================================================================
RCS file: /cvs/ports/net/bro/Makefile,v
retrieving revision 1.48
diff -u -p -u -p -r1.48 Makefile
--- Makefile    30 Dec 2018 14:14:14 -0000      1.48
+++ Makefile    4 Mar 2019 14:23:24 -0000
@@ -62,6 +62,12 @@ RUN_DEPENDS +=               net/curl
 
 CONFIGURE_STYLE=       simple
 
+# Fix undefined reference to __atomic_load_8
+.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "hppa"
+LDFLAGS +=             "-latomic"
+WANTLIB +=             atomic
+.endif
+
 CONFIGURE_ENV=         LDFLAGS="${LDFLAGS} -L$
{LOCALBASE}/lib/libbind \ -lbind -Wl,-rpath ${LOCALBASE}/lib/libbind"
 

Reply via email to