flightaware / speedtables

Speed tables is a high-performance memory-resident database. The speed table compiler reads a table definition and generates a set of C access routines to create, manipulate and search tables containing millions of rows. Currently oriented towards Tcl.
https://flightaware.github.io/speedtables/
BSD 3-Clause "New" or "Revised" License
65 stars 15 forks source link

Fix casstcl linking on linux / gcc env #83

Closed conej730 closed 2 years ago

conej730 commented 2 years ago
If speedtables is built with casstcl support on Linux, creating new
speedtables fails because the casstcl shared library is not found.
Therefore we extract the version from the generated shared library
for sysconfig and then append that to the linker command when
creating a ctable

BCK-6685
gahr commented 2 years ago

This breaks on FreeBSD (at least), where the generated casstcl shared library is named just libcasstcl.so (no versioning). The library is installed under /usr/local/lib/casstcl2.14, so the old method worked. It is not clear to me from the description of this PR what doesn't work on Linux.. perhaps casstcl is not installed under a casstcl2.14 directory?

I think a more robust approach would be to parse the output of package versions casstcl.