diff options
author | tsutsui <tsutsui@pkgsrc.org> | 2018-12-23 23:51:26 +0000 |
---|---|---|
committer | tsutsui <tsutsui@pkgsrc.org> | 2018-12-23 23:51:26 +0000 |
commit | 8198d77200ab80c3955b8a8701a6bd26dbc3cdcc (patch) | |
tree | b1cd239f98899b0dec7139d07ddfe50ca81cf89e | |
parent | 4f2e4db16c5d157ca08f249e231a65b4d3085706 (diff) | |
download | pkgsrc-8198d77200ab80c3955b8a8701a6bd26dbc3cdcc.tar.gz |
protobuf: fix build failure on NetBSD/i386 8.0. PR pkg/53659
Assume and specify -march=i586 for 64 bit atomic ops, as firefox does.
"Looks ok" by wiz@.
-rw-r--r-- | devel/protobuf/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/devel/protobuf/Makefile b/devel/protobuf/Makefile index f0e364ecd38..5f67b1037f6 100644 --- a/devel/protobuf/Makefile +++ b/devel/protobuf/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2018/08/04 21:19:39 minskim Exp $ +# $NetBSD: Makefile,v 1.17 2018/12/23 23:51:26 tsutsui Exp $ .include "Makefile.common" @@ -20,6 +20,11 @@ PKGCONFIG_OVERRIDE+= protobuf.pc.in TEST_TARGET= check +.if ${MACHINE_ARCH} == "i386" +# 64 bit atomic ops are required +CXXFLAGS+= -march=i586 +.endif + pre-configure: ${RUN} cd ${WRKSRC} && ./autogen.sh |