From 1458d8859ea82771f9f2344e9b2ba2a7275106a3 Mon Sep 17 00:00:00 2001 From: Tarak Ben Youssef Date: Tue, 6 Feb 2024 00:12:40 +0100 Subject: [PATCH] force exported makefile variables to be exported in shell --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 3692434b4..265a9dc96 100644 --- a/Makefile +++ b/Makefile @@ -118,15 +118,15 @@ install-cross-build-tools: # https://github.com/wangyoucao577/go-release-action/blob/v1.40/action.yml#L109 GOARCH := $(INPUT_GOARCH) + .PHONY: pre-build pre-build: generate install-cross-build-tools - export CGO_ENABLED=1 - export CGO_FLAGS="-O2 -D__BLST_PORTABLE__" - export GOARCH=$(GOARCH) + echo 'export CGO_ENABLED=1' + echo 'export CGO_FLAGS="-O2 -D__BLST_PORTABLE__"' if [ "$(GOARCH)" = "arm64" ] ; then \ - export CC=aarch64-linux-gnu-gcc ; \ + echo 'export CC=aarch64-linux-gnu-gcc' ; \ elif [ "$(GOARCH)" = "amd64" ] ; then \ - export CC=x86_64-linux-gnu-gcc ; \ + echo 'export CC=x86_64-linux-gnu-gcc' ; \ else \ echo "arch target" $(GOARCH) "is not supported" ; \ fi