原官网教程<https://docs.cloudreve.org/getting-started/build>
已设置代理用GOPROXY.IO 。
#开始编译
go build -a -o cloudreve -ldflags " -X 'github.com/cloudreve/Cloudreve/v3/pkg/conf.BackendVersion=$VERSION' -X 'github.com/cloudreve/Cloudreve/v3/pkg/conf.LastCommit=$COMMIT_SHA'"
报错结果如下
#github.com/cloudreve/Cloudreve/v3
D:\APPs_Programming\Go\pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1
c:/app/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/bin/ld.exe: unrecognized option '--high-entropy-va'
c:/app/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/bin/ld.exe: use the --help option for usage information
collect2.exe: error: ld returned 1 exit status