diff options
author | nia <nia@pkgsrc.org> | 2020-06-13 11:26:31 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2020-06-13 11:26:31 +0000 |
commit | ddd8ed8be36866e3e231022b4b71453452f3061e (patch) | |
tree | df42c8ac48e466d10f1d48d3c15c0621ce427966 | |
parent | a84042ace87363f1474f6d2662808373d6550d48 (diff) | |
download | pkgsrc-ddd8ed8be36866e3e231022b4b71453452f3061e.tar.gz |
grpc: needs 64-bit atomic ops
-rw-r--r-- | net/grpc/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/net/grpc/Makefile b/net/grpc/Makefile index 14de785b99a..36cb63c66a9 100644 --- a/net/grpc/Makefile +++ b/net/grpc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.25 2020/06/03 09:28:53 adam Exp $ +# $NetBSD: Makefile,v 1.26 2020/06/13 11:26:31 nia Exp $ DISTNAME= grpc-1.29.1 CATEGORIES= net @@ -24,6 +24,14 @@ CMAKE_ARGS+= -DgRPC_PROTOBUF_PROVIDER=package CMAKE_ARGS+= -DgRPC_SSL_PROVIDER=package CMAKE_ARGS+= -DgRPC_ZLIB_PROVIDER=package +.include "../../mk/bsd.prefs.mk" + +# 64 bit atomic ops are required +.if ${MACHINE_ARCH} == "i386" +CFLAGS+= -march=i586 +CXXFLAGS+= -march=i586 +.endif + .include "../../benchmarks/google-benchmark/buildlink3.mk" .include "../../devel/abseil/buildlink3.mk" .include "../../devel/gflags/buildlink3.mk" |