Skip to content

Commit

Permalink
add duckdb_use_static_lib
Browse files Browse the repository at this point in the history
  • Loading branch information
taniabogatsch committed Jan 14, 2025
1 parent e17fd00 commit d646f0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cgo_static.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build !(duckdb_use_lib || duckdb_use_static_lib) && (darwin || (linux && (amd64 || arm64)) || (freebsd && amd64) || (windows && amd64))
//go:build !duckdb_use_lib && !duckdb_use_static_lib && (darwin || (linux && (amd64 || arm64)) || (freebsd && amd64) || (windows && amd64))

package duckdb

Expand Down
3 changes: 2 additions & 1 deletion cgo_static_lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
package duckdb

/*
#cgo LDFLAGS: -lduckdb_static
#cgo CPPFLAGS: -DDUCKDB_STATIC_BUILD
#cgo LDFLAGS: -lduckdb
#include <duckdb.h>
*/
import "C"

0 comments on commit d646f0e

Please sign in to comment.