Skip to content

Commit ff828bb

Browse files
authored
Merge pull request #703 from robnester-rh/HACBS-2210
UPDATE build to work on RHEL-8
2 parents ad9a1cb + 50669bb commit ff828bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ help: ## Display this help
4242
$(ALL_SUPPORTED_OS_ARCH): ## Build binaries for specific platform/architecture, e.g. make dist/ec_linux_amd64
4343
@GOOS=$(word 2,$(subst _, ,$(notdir $@))); \
4444
GOARCH=$(word 3,$(subst _, ,$(notdir $@))); \
45-
GOOS=$${GOOS} GOARCH=$${GOARCH} go build -trimpath -ldflags="-s -w -X github.com/enterprise-contract/ec-cli/internal/version.Version=$(VERSION)" -o dist/ec_$${GOOS}_$${GOARCH}; \
45+
GOOS=$${GOOS} GOARCH=$${GOARCH} CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/enterprise-contract/ec-cli/internal/version.Version=$(VERSION)" -o dist/ec_$${GOOS}_$${GOARCH}; \
4646
sha256sum -b dist/ec_$${GOOS}_$${GOARCH} > dist/ec_$${GOOS}_$${GOARCH}.sha256
4747

4848
.PHONY: dist

0 commit comments

Comments
 (0)