INTERACT FORUM

More => Old Versions => JRiver Media Center 24 for Linux => Topic started by: BryanC on May 28, 2018, 07:26:45 pm

Title: libstdc++ static linking
Post by: BryanC on May 28, 2018, 07:26:45 pm
CentOS 7 ships with GCC 4.8.5 which has a CXXABI_1.3.7. Would it be possible to statically link libstdc++ in future builds to improve compatibility with CentOS 7? It appears that statically linking libstdc++ does not invoke the GPL.
Title: Re: libstdc++ static linking
Post by: Hendrik on May 28, 2018, 07:35:17 pm
I'm personally not a fan of that. It would greatly increase the binary size (and possibly the runtime memory size due to loading it multiple times) due to the number of separate .so's we use and have some other unfortunate implications. We try to keep the runtime dependencies as low as possible, but glibc and libstdc++ are really quite a minimum to have.

It's also a potential source of problems when we interface with other C++ libraries in the system which use a different version.
Title: Re: libstdc++ static linking
Post by: BryanC on May 28, 2018, 08:56:06 pm
Understood, I'll try to figure out a plan B, probably a container.
Title: Re: libstdc++ static linking
Post by: Hendrik on May 28, 2018, 11:10:04 pm
We'll see what bob thinks, maybe he has another idea.