Skip to content

go-sqlite3 still using built-in copy despite libsqlite3 tag #330

@stgraber

Description

@stgraber

Building with -tags libsqlite3, while it does seem to be using the sqlite3.h from the system, still appears to be using the built-in copy of the actual code rather than linking against the system library.

stgraber@castiana:~/data/code/go/src/github.com/mattn/go-sqlite3 (master)$ go build -tags libsqlite3 _example/simple/simple.go
stgraber@castiana:~/data/code/go/src/github.com/mattn/go-sqlite3 (master)$ ldd simple | grep sqlite

Now if I actually remove the embedded copy and try again (no other changes):

stgraber@castiana:~/data/code/go/src/github.com/mattn/go-sqlite3 (master)$ rm sqlite3-binding.*
stgraber@castiana:~/data/code/go/src/github.com/mattn/go-sqlite3 (master)$ go build -tags libsqlite3 _example/simple/simple.go
stgraber@castiana:~/data/code/go/src/github.com/mattn/go-sqlite3 (master)$ ldd simple | grep sqlite
        libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f8ba57ea000)

Any idea what's going on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions