Skip to content

Commit d646f0e

Browse files
committed
add duckdb_use_static_lib
1 parent e17fd00 commit d646f0e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cgo_static.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !(duckdb_use_lib || duckdb_use_static_lib) && (darwin || (linux && (amd64 || arm64)) || (freebsd && amd64) || (windows && amd64))
1+
//go:build !duckdb_use_lib && !duckdb_use_static_lib && (darwin || (linux && (amd64 || arm64)) || (freebsd && amd64) || (windows && amd64))
22

33
package duckdb
44

cgo_static_lib.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
package duckdb
44

55
/*
6-
#cgo LDFLAGS: -lduckdb_static
6+
#cgo CPPFLAGS: -DDUCKDB_STATIC_BUILD
7+
#cgo LDFLAGS: -lduckdb
78
#include <duckdb.h>
89
*/
910
import "C"

0 commit comments

Comments
 (0)