~alpine/aports

[alpine-aports] [PATCH v2] main/protobuf: fix build on mips{el} (-latomic)

alpine-mips-patches <info@mobile-stream.com>
Details
Message ID
<20181126230635.1C43C64066@mx7.valuehost.ru>
Sender timestamp
1543269943
DKIM signature
missing
Download raw message
Patch: +2 -0
32-bit MIPS (until R6) lacks instructions to implement 64-bit atomic
operations so explicit linkage with libatomic is required.

Keep pkgrel intact since no previously built mips* apks exist and
other architectures are unaffected.
---
 main/protobuf/APKBUILD | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/main/protobuf/APKBUILD b/main/protobuf/APKBUILD
index 6b4ee20ce6..f7015d35d6 100644
--- a/main/protobuf/APKBUILD
+++ b/main/protobuf/APKBUILD
@@ -34,6 +34,8 @@ prepare() {
build() {
	cd "$builddir"

	case "$CARCH" in mips|mipsel) export LIBS="$LIBS -latomic";; esac

	CXXFLAGS="$CXXFLAGS -fno-delete-null-pointer-checks" \
		./configure --prefix=/usr \
			--sysconfdir=/etc \
-- 
2.19.1




---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)