On Fri, Jan 11 2019, lan...@openbsd.org wrote:

[...]

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

Fails to build on powerpc and sparc64 because base-gcc has no TLS
emulation support.  Here's a diff that makes haproxy use ports-gcc on
non-clang archs, successfully tested on sparc64.

While here, ports-gcc should bring support for atomic ops on hppa, so
the special case shouldn't be needed.

ok?


Index: Makefile
===================================================================
RCS file: /cvs/ports/net/haproxy/Makefile,v
retrieving revision 1.53
diff -u -p -r1.53 Makefile
--- Makefile    11 Jan 2019 01:09:50 -0000      1.53
+++ Makefile    14 Jan 2019 17:56:02 -0000
@@ -26,11 +26,7 @@ MAKE_FLAGS +=        CFLAGS="${CFLAGS} -fno-str
 MAKE_FLAGS +=  CC="${CC}" LD="${CC}" TARGET="openbsd"
 MAKE_FLAGS +=  USE_OPENSSL=1 USE_PCRE=1
 
-# The shared SSL session cache needs either atomics ops unsupported on
-# hppa or pthreads features unsupported on OpenBSD.
-.if ${MACHINE_ARCH:Mhppa}
-MAKE_FLAGS +=  USE_PRIVATE_CACHE=1
-.endif
+COMPILER =     base-clang ports-gcc
 
 LIB_DEPENDS =  devel/pcre
 


-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to