On 9/3/22 16:12, Mark Rotteveel wrote:
I'm investigating ways of packaging Firebird Embedded for Java, so it
can be used as drop-in Java library (which is then unpacked to a
temporary directory automatically).
Given Firebird complains about missing libtommath when I use the
normal build, and I don't want to impose on users to install
additional libraries, I tried a custom build (from current state of
v4.0-release branch) with:
./autogen.sh --with-builtin-tommath --with-builtin-tomcrypt
--enable-binreloc
make
make dist
I have a problem with libtommath in this build:
gen/buildroot/usr/local/firebird/lib contains libtomcrypt.so.1.0.1
(and symlinks libtomcrypt.so and libtomcrypt.so.1), but no libtommath
files, these are in a .tm subdirectory of lib, so
gen/buildroot/usr/local/firebird/lib/.tm/libtommath.so.0
gen/buildroot/usr/local/firebird/lib/.tm/libtommath.so.0.0.41
gen/buildroot/usr/local/firebird/lib/.tm/libtommath.so
I would have expected these files directly in
gen/buildroot/usr/local/firebird/lib/, not in
gen/buildroot/usr/local/firebird/lib/.tm/. Trying to load embedded
this way complains about missing libtommath.
This is solved by install script - it creates symlink to
/inst/path/firebird/lib/.tm/libtommath.so.0 in system lib directory
(provided it's missing).
That's done this way in order to make it possible to use system tommath
when present.
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel