Skip to content

Commit 465b965

Browse files
authored
Merge pull request #20 from mvojacek/windows-morestatic
Force linking against pthreads statically
2 parents 885f3ac + 6eaf27e commit 465b965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

process/embedded/tor-0.3.5/process.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
#cgo LDFLAGS: -L${SRCDIR}/../../../../tor-static/xz/dist/lib -llzma
2525
#cgo LDFLAGS: -L${SRCDIR}/../../../../tor-static/zlib/dist/lib -lz
2626
#cgo LDFLAGS: -L${SRCDIR}/../../../../tor-static/openssl/dist/lib -lssl -lcrypto
27-
#cgo windows LDFLAGS: -lws2_32 -lcrypt32 -lgdi32 -liphlpapi
27+
#cgo windows LDFLAGS: -lws2_32 -lcrypt32 -lgdi32 -liphlpapi -Wl,-Bstatic -lpthread
2828
#cgo !windows LDFLAGS: -lm
2929
3030
#include <stdlib.h>

0 commit comments

Comments
 (0)