My little open-source C/C++ project also offers precompiled dynamic libraries to allow other languages to bind. For Windows I just provide x86 and x64 versions. For Macos, I propose an intel x64 version and a M1/M2 version.
For Linux, I have x86 and x64 versions, but I wonder if these are compatible with any Linux version, or only with the Linux 6.2 used to produce them.
gcc -m64 -fPIC -shared -o tinyfiledialogsLinux64.so ../tinyfiledialogs.c
ldd tinyfiledialogsLinux64.so
linux-vdso.so.1 (0x00007ffdd87b3000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8afcc00000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8afd006000)
objdump -T tinyfiledialogsLinux64.so | grep GLIBC_
maximum is GLIBC_2.7
Since the library is open source, there is no need nor any advantage at releasing a binary version of the library for linux. You should instead provide the source code along with a simple
Makefileto produce the library or the object file for the user's target system.You can also just document the compilation command: