Hi Daniel, ports,

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

This requires atomics at least on macppc, where it has been built 
sucessfully [1], and probably hppa. 

I've tested a very simple setup with 2 python3's http.server
instances behind it and it was just fine. 

Comments and feedback are welcome!

Charlène.


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


Index: Makefile
===================================================================
RCS file: /cvs/ports/net/haproxy/Makefile,v
retrieving revision 1.55
diff -u -p -u -p -r1.55 Makefile
--- Makefile    14 Jan 2019 18:18:59 -0000      1.55
+++ Makefile    9 Mar 2019 16:18:58 -0000
@@ -38,6 +38,12 @@ EXAMPLES =   acl-content-sw content-sw-sam
 DOCSDIR =      ${PREFIX}/share/doc/haproxy
 EXAMPLESDIR =  ${PREFIX}/share/examples/haproxy
 
+# Fix undefined reference to __atomic_*
+.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "hppa"
+LDFLAGS +=             "-latomic"
+WANTLIB +=             atomic
+.endif
+
 
 pre-install:
        ${SUBST_CMD} ${WRKSRC}/doc/haproxy.1

Reply via email to