Skip to content

Commit 77d82b2

Browse files
author
TeleGhost Dev
committed
Fix Windows build: allow --whole-archive flag in CGO
1 parent fc1fa7f commit 77d82b2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
4242
- name: Build Wails App
4343
run: |
44-
export CGO_LDFLAGS_ALLOW=".*"
44+
export CGO_LDFLAGS_ALLOW="-Wl,--whole-archive|-Wl,--no-whole-archive|-Wl,--start-group|-Wl,--end-group"
4545
wails build -tags cgo_i2pd -platform linux/amd64
4646
4747
- name: Rename and Prepare Binary
@@ -102,6 +102,7 @@ jobs:
102102
- name: Build Wails App
103103
shell: msys2 {0}
104104
run: |
105+
export CGO_LDFLAGS_ALLOW="-Wl,--whole-archive|-Wl,--no-whole-archive"
105106
# Ensure Go bin is in path for Wails
106107
export PATH=$PATH:$(go env GOPATH)/bin
107108

0 commit comments

Comments
 (0)