Fork github.com/mattn/go-sqlite3 with adjustment for go1.16.2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
638 B

  1. // Copyright (C) 2019 Yasuhiro Matsumoto <mattn.jp@gmail.com>.
  2. //
  3. // Use of this source code is governed by an MIT-style
  4. // license that can be found in the LICENSE file.
  5. // +build libsqlite3
  6. package sqlite3
  7. /*
  8. #cgo CFLAGS: -DUSE_LIBSQLITE3
  9. #cgo linux LDFLAGS: -lsqlite3
  10. #cgo darwin,amd64 LDFLAGS: -L/usr/local/opt/sqlite/lib -lsqlite3
  11. #cgo darwin,amd64 CFLAGS: -I/usr/local/opt/sqlite/include
  12. #cgo darwin,arm64 LDFLAGS: -L/opt/homebrew/opt/sqlite/lib -lsqlite3
  13. #cgo darwin,arm64 CFLAGS: -I/opt/homebrew/opt/sqlite/include
  14. #cgo openbsd LDFLAGS: -lsqlite3
  15. #cgo solaris LDFLAGS: -lsqlite3
  16. #cgo windows LDFLAGS: -lsqlite3
  17. */
  18. import "C"