]> git.puffer.fish Git - matthieu/nova.git/commitdiff
fix variables name
authorMatthieuCoder <matthieu@matthieu-dev.xyz>
Tue, 3 Jan 2023 16:14:54 +0000 (20:14 +0400)
committerMatthieuCoder <matthieu@matthieu-dev.xyz>
Tue, 3 Jan 2023 16:14:54 +0000 (20:14 +0400)
.github/workflows/build.yml
exes/all/Makefile
exes/all/main.go

index 43ad891ad90c2ba740724e1d9952b2c7d0d62c11..849267d4e3094f00d75eccbace1fb443ff0cd5e8 100644 (file)
@@ -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
index 906a08206ffceb1824d7126fede5923ac523dba2..22a67e0b9c1f04c60672e189ccbeaf35c5cff5c5 100644 (file)
@@ -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
 
index 6e1f7c0f1f777ab432fba6852d8042d9f71478e3..3a8a9d8665dea2054e16c7af939a8a833c4c95f5 100644 (file)
@@ -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"