Hi ports --

GnuTLS will find atomics through libatomic on hppa (at least). So we need to link -latomic on hppa.
Diff does this, makes a successful build.

OK?

~Brian

Index: Makefile
===================================================================
RCS file: /cvs/ports/security/gnutls/Makefile,v
retrieving revision 1.153
diff -u -p -r1.153 Makefile
--- Makefile	28 Mar 2019 14:53:10 -0000	1.153
+++ Makefile	16 Apr 2019 01:24:03 -0000
@@ -57,7 +57,13 @@ CONFIGURE_ARGS +=	--without-tpm
 CONFIGURE_ARGS +=	--enable-local-libopts
 
 CONFIGURE_ENV=		CPPFLAGS="-I${LOCALBASE}/include" \
-			LDFLAGS="-L${LOCALBASE}/lib"
+			LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
+
+# hppa (at least) needs libatomic
+.if ${MACHINE_ARCH:Mhppa}
+WANTLIB += atomic
+LDFLAGS +=		-latomic
+.endif
 
 post-install:
 	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gnutls

Reply via email to