[External]Re: [odb-users] New distribution pkgs for ODB

Boris Kolpackov boris at codesynthesis.com
Thu Mar 30 07:05:06 EDT 2023


Montero, Antonio <antonio.montero at carrier.com> writes:

> Per the documentation I attempted to specify the ?sys:sqlite3/<version> [...]

That should be ?sys:libsqlite3. There is actually an example of the
correct command line shown in the instructions:

$ bpkg build libodb-sqlite ?sys:libsqlite3

If the location of the libsqlite3 header/library that you would like to
use is not in the compiler's default search paths (or the ones you have
already added with -I/-L), then you will need to add the suitable -I/-L
options; build2 will only look for the library in the compiler's build-in
search paths plus what you have specified with -L. One thing that may
throw things off is a broken pkg-config (.pc) file that has something
like -I/usr/include hardcoded in it. So you may want to just removing it
(libsqlite3 should link fine without it).


> 2- Is there a way to strip .so libs via build2 configuration? I
> could not find an option to cause 'strip --strip-all' to be called
> on the created '.so' libs

No, there is no way to cause this. But perhaps adding the following
will have the same effect:

config.cc.loptions=-Wl,--strip-all



More information about the odb-users mailing list