Hi ports --

hppa needs -latomic from ports-gcc in order to successfully build. The attached patch does this.
This allows libarchive to build successfully on hppa.

Built on hppa with gcc-8.3.0.

OK?

~Brian

Index: Makefile
===================================================================
RCS file: /cvs/ports/archivers/zstd/Makefile,v
retrieving revision 1.22
diff -u -p -r1.22 Makefile
--- Makefile	28 Dec 2018 19:28:37 -0000	1.22
+++ Makefile	15 Apr 2019 19:21:13 -0000
@@ -30,8 +30,14 @@ MAKE_ENV =		CC="${CC}" \
 			CPPFLAGS="-I${WRKSRC}/lib -I${WRKSRC}/lib/dictBuilder -I${LOCALBASE}/include" \
 			CXX="${CXX}" \
 			CXXFLAGS="${CXXFLAGS}" \
-			LDFLAGS="-L${LOCALBASE}/lib" \
+			LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \
 			LIBzstd_VERSION="${LIBzstd_VERSION}"
+
+.if ${MACHINE_ARCH:Mhppa}
+WANTLIB +=		atomic
+LDFLAGS +=		-latomic
+.endif
+
 FAKE_FLAGS =		PREFIX="${PREFIX}"
 
 USE_GMAKE =		Yes

Reply via email to