From: MatthieuCoder Date: Tue, 3 Jan 2023 16:14:54 +0000 (+0400) Subject: fix variables name X-Git-Tag: v0.1~13 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=4053b78fb805be88fef84b3eb220a75f540014a2;p=matthieu%2Fnova.git fix variables name --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 43ad891..849267d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -86,7 +86,7 @@ jobs: - name: All in one run: | cd exes/all - export LDFLAGS='-lntdll -lWs2_32 -lcrypt32 -lSecur32 -luserenv -lNcrypt -lbcrypt' + export CGO_LDFLAGS='-lntdll -lWs2_32 -lcrypt32 -lSecur32 -luserenv -lNcrypt -lbcrypt' mingw32-make.exe build - name: Move artifacts diff --git a/exes/all/Makefile b/exes/all/Makefile index 906a082..22a67e0 100644 --- a/exes/all/Makefile +++ b/exes/all/Makefile @@ -6,7 +6,7 @@ library: build: library cp ../../target/release/liball.a ./build - go build -a -ldflags '-s $(LDFLAGS)' -o build/all + go build -a -ldflags '-s' -o build/all all: library build diff --git a/exes/all/main.go b/exes/all/main.go index 6e1f7c0..3a8a9d8 100644 --- a/exes/all/main.go +++ b/exes/all/main.go @@ -1,7 +1,7 @@ package main /* -#cgo LDFLAGS: -L./build -lall -lcrypto -lz -ldl -lssl -lm -static-libgcc +#cgo LDFLAGS: -L./build -lall -lcrypto -lz -ldl -lssl -lm #include "./build/all.h" */ import "C"