Skip to content

Commit

Permalink
win: add notes for loading shared lib in windows mingw64
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Jun 28, 2024
1 parent 2ea5ab1 commit 968ff4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/native/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ package native
#cgo linux,arm64 LDFLAGS: -L/tmp -L/opt/pact/lib -L/usr/local/lib -Wl,-rpath -Wl,/opt/pact/lib -Wl,-rpath -Wl,/tmp -Wl,-rpath -Wl,/usr/local/lib -lpact_ffi
*/
import "C"

// to load in windows with mingw64
// $env:Path += ';$env:TMP'
// $env:LDFLAGS = '-L$env:TMP'

0 comments on commit 968ff4a

Please sign in to comment.