Skip to content

Commit 65b2f2e

Browse files
committed
support to build with flag NOCORSS
1 parent 2bfc04a commit 65b2f2e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,9 @@ to_uname_m = $(foreach arch,$(1),$(shell echo $(arch) | sed 's/amd64/x86_64/'))
548548
else ifeq ($(GOOS),linux)
549549
# CC is required for cross-compiling on Linux.
550550
CC = $(call to_uname_m,$(GOARCH))-linux-gnu-gcc
551+
ifneq ($(NOCORSS),)
552+
CC = gcc
553+
endif
551554
else ifeq ($(GOOS),windows)
552555
# artifact in zip format also provided for Windows.
553556
ARTIFACT_FILE_EXTENSIONS += .zip

0 commit comments

Comments
 (0)