From 7c5d8e055ee848f388afdcca14872ec4ddba17d9 Mon Sep 17 00:00:00 2001 From: Marc Boeker Date: Sat, 23 Dec 2023 17:50:44 +0100 Subject: [PATCH] Add LDFLAGS for windows on amd64 --- cgo_static.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cgo_static.go b/cgo_static.go index 342b22a6..5da4e145 100644 --- a/cgo_static.go +++ b/cgo_static.go @@ -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 */ import "C"