Skip to content

Commit 385f23b

Browse files
author
liuyu
committed
use musl-gcc
1 parent f21ce70 commit 385f23b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
3232
- name: Build
3333
run: |
34+
sudo apt-get update && sudo apt-get install -y musl-tools upx-ucl
35+
export STATIC=1
3436
make juicefs.linux
3537
3638
- name: Archives

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ juicefs.ceph: Makefile cmd/*.go pkg/*/*.go
3434
# This is the script for compiling the Linux version on the MacOS platform.
3535
# Please execute the `brew install FiloSottile/musl-cross/musl-cross` command before using it.
3636
juicefs.linux:
37-
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 CC=gcc CGO_LDFLAGS="-static" go build -ldflags="$(LDFLAGS)" -o juicefs .
37+
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 CC=x86_64-linux-musl-gcc CGO_LDFLAGS="-static" go build -ldflags="$(LDFLAGS)" -o juicefs .
3838

3939
/usr/local/include/winfsp:
4040
sudo mkdir -p /usr/local/include/winfsp

0 commit comments

Comments
 (0)