- 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
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
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"