From de7fe193ab2f4cb3e948331fcd7c1f62d922f62c Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Thu, 13 Dec 2018 14:38:49 +0100 Subject: [PATCH] s390x: set CC for fedora Fixes: #217 Signed-off-by: Alice Frosi --- rootfs-builder/rootfs.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootfs-builder/rootfs.sh b/rootfs-builder/rootfs.sh index dfedc8569..f1a2f7025 100755 --- a/rootfs-builder/rootfs.sh +++ b/rootfs-builder/rootfs.sh @@ -368,6 +368,10 @@ popd >> /dev/null [ -n "${KERNEL_MODULES_DIR}" ] && copy_kernel_modules ${KERNEL_MODULES_DIR} ${ROOTFS_DIR} +# The CC on s390x for fedora needs to be manually set to gcc when the golang is downloaded from the main page. +# See issue: https://github.com/kata-containers/osbuilder/issues/217 +[ "$distro" == fedora ] && [ "$ARCH" == "s390x" ] && export CC=gcc + AGENT_DIR="${ROOTFS_DIR}/usr/bin" AGENT_DEST="${AGENT_DIR}/${AGENT_BIN}"