Skip to content

Commit

Permalink
Add LDFLAGS for windows on amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
marcboeker committed Dec 23, 2023
1 parent b658b4e commit 7c5d8e0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cgo_static.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//go:build !duckdb_use_lib && (darwin || (linux && (amd64 || arm64)))
//go:build !duckdb_use_lib && (darwin || (linux && (amd64 || arm64)) || (windows && amd64))

package duckdb

/*
#cgo LDFLAGS: -lduckdb
#cgo darwin,amd64 LDFLAGS: -lc++ -L${SRCDIR}/deps/darwin_amd64
#cgo darwin,arm64 LDFLAGS: -lc++ -L${SRCDIR}/deps/darwin_arm64
#cgo linux,amd64 LDFLAGS: -lstdc++ -lm -ldl -L${SRCDIR}/deps/linux_amd64
#cgo linux,arm64 LDFLAGS: -lstdc++ -lm -ldl -L${SRCDIR}/deps/linux_arm64
#cgo darwin,amd64 LDFLAGS: -lduckdb -lc++ -L${SRCDIR}/deps/darwin_amd64
#cgo darwin,arm64 LDFLAGS: -lduckdb -lc++ -L${SRCDIR}/deps/darwin_arm64
#cgo linux,amd64 LDFLAGS: -lduckdb -lstdc++ -lm -ldl -L${SRCDIR}/deps/linux_amd64
#cgo linux,arm64 LDFLAGS: -lduckdb -lstdc++ -lm -ldl -L${SRCDIR}/deps/linux_arm64
#cgo windows,amd64 LDFLAGS: -lduckdb -lws2_32 -lstdc++ -Wl,-Bstatic -lpthread -lm -L${SRCDIR}/deps/windows_amd64
#include <duckdb.h>
*/
import "C"

0 comments on commit 7c5d8e0

Please sign in to comment.