File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ GO_BUILD_STATIC_FIPS = go build -trimpath -buildvcs=false -ldflags "-X 'main.ver
1919PKG_FILES = build/$(NAME ) _$(VERSION ) .amd64.deb build/$(NAME ) _$(VERSION ) .arm64.deb build/$(NAME ) -$(VERSION ) -1.amd64.rpm build/$(NAME ) -$(VERSION ) -1.arm64.rpm
2020HOST_OS = $(shell bash -c 'source <(go env) && echo $$GOHOSTOS')
2121HOST_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
6968build/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 && \
You can’t perform that action at this time.
0 commit comments