pharo-rdbms / Pharo-SQLite3

Community-owned official SQLite3 binding for Pharo
MIT License
22 stars 20 forks source link

Add /usr/lib64 to unix64 search path #113

Open robbie01 opened 1 month ago

robbie01 commented 1 month ago

In Fedora (and probably other distributions), 64-bit shared libraries are in /usr/lib64. This change allows SQLite3Library to load the 64-bit shared object on these systems.

robbie01 commented 1 month ago

8 mentions FFILibraryFinder. Maybe this is worth considering?

SQLite3Library >> unix32LibraryName
  ^ FFIUnix32LibraryFinder findAnyLibrary: #('libsqlite3.so.0' 'libsqlite3.so')
SQLite3Library >> unix64LibraryName
  ^ FFIUnix64LibraryFinder findAnyLibrary: #('libsqlite3.so.0' 'libsqlite3.so')
SQLite3Library >> macLibraryName
  ^ FFIMacLibraryFinder findAnyLibrary: #('libsqlite3.dylib' 'libsqlite3.0.dylib' 'sqlite3/libtclsqlite3.dylib')