From a1cedc567ab4d3114903261cbdee34195e14fcc2 Mon Sep 17 00:00:00 2001 From: Jakob Naucke Date: Thu, 14 Jan 2021 16:27:09 +0100 Subject: [PATCH] agent: Build for glibc on s390x Since there is no Rust target for musl on s390x, builds on s390x should use glibc. This commit makes glibc the default on s390x as per the agent Makefile. Fixes: #1262 Signed-off-by: Jakob Naucke --- src/agent/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/agent/Makefile b/src/agent/Makefile index e33802037f..0763681e74 100644 --- a/src/agent/Makefile +++ b/src/agent/Makefile @@ -41,6 +41,11 @@ ifeq ($(ARCH), ppc64le) $(warning "WARNING: powerpc64le-unknown-linux-musl target is unavailable") endif +ifeq ($(ARCH), s390x) + override LIBC = gnu + $(warning "WARNING: s390x-unknown-linux-musl target is unavailable") +endif + EXTRA_RUSTFLAGS := ifeq ($(ARCH), aarch64)