Skip to content

Commit bea00c6

Browse files
committed
1 parent c76576c commit bea00c6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ GO_BUILD_STATIC_FIPS = go build -trimpath -buildvcs=false -ldflags "-X 'main.ver
1919
PKG_FILES = build/$(NAME)_$(VERSION).amd64.deb build/$(NAME)_$(VERSION).arm64.deb build/$(NAME)-$(VERSION)-1.amd64.rpm build/$(NAME)-$(VERSION)-1.arm64.rpm
2020
HOST_OS = $(shell bash -c 'source <(go env) && echo $$GOHOSTOS')
2121
HOST_ARCH = $(shell bash -c 'source <(go env) && echo $$GOHOSTARCH')
22-
UBUNTU_VERSION=$(shell lsb_release -r -s)
2322

2423
.PHONY: clean all version test
2524

@@ -67,7 +66,7 @@ build/linux/amd64/$(NAME)-fips build/darwin/amd64/$(NAME)-fips:
6766
# bash -xce 'if [[ ! -f ~/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc ]]; then wget -nv -P ~ https://musl.cc/aarch64-linux-musl-cross.tgz; tar -xvf ~/aarch64-linux-musl-cross.tgz -C ~; fi' && \
6867
6968
build/linux/arm64/$(NAME)-fips build/darwin/arm64/$(NAME)-fips:
70-
bash -xce 'if [[ ! -f ~/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc ]]; then rm -rf ~/aarch64-linux-musl-cross; curl -sL -o /tmp/megacmd.deb https://mega.nz/linux/repo/xUbuntu_$(UBUNTU_VERSION)/amd64/megacmd-xUbuntu_$(UBUNTU_VERSION)_amd64.deb; sudo apt install -y /tmp/megacmd.deb; mega-get https://mega.nz/file/zQwVHSYb#8WqqMUCTbbEVKDW55NPrRnM2-4SC-numNCLDKoTWtwQ ~/; tar -xvf ~/aarch64-linux-musl-cross.tgz -C ~; fi' && \
69+
bash -xce 'if [[ ! -f ~/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc ]]; then rm -rf ~/aarch64-linux-musl-cross; wget -nv /tmp/megacmd.deb https://mega.nz/linux/repo/xUbuntu_$(shell lsb_release -r -s)/amd64/megacmd-xUbuntu_$(shell lsb_release -r -s)_amd64.deb; sudo apt install -y /tmp/megacmd.deb; mega-get https://mega.nz/file/zQwVHSYb#8WqqMUCTbbEVKDW55NPrRnM2-4SC-numNCLDKoTWtwQ ~/; tar -xvf ~/aarch64-linux-musl-cross.tgz -C ~; fi' && \
7170
CC=~/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc GOEXPERIMENT=boringcrypto CGO_ENABLED=1 GOOS=$(GOOS) GOARCH=$(GOARCH) $(GO_BUILD_STATIC_FIPS) -o $@ ./cmd/$(NAME) && \
7271
go tool nm $@ > /tmp/$(NAME)-fips-tags.txt && \
7372
grep '_Cfunc__goboringcrypto_' /tmp/$(NAME)-fips-tags.txt 1> /dev/null && \

0 commit comments

Comments
 (0)