INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: libstdc++ static linking  (Read 869 times)

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2554
libstdc++ static linking
« 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.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10710
Re: libstdc++ static linking
« Reply #1 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.
Logged
~ nevcairiel
~ Author of LAV Filters

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2554
Re: libstdc++ static linking
« Reply #2 on: May 28, 2018, 08:56:06 pm »

Understood, I'll try to figure out a plan B, probably a container.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10710
Re: libstdc++ static linking
« Reply #3 on: May 28, 2018, 11:10:04 pm »

We'll see what bob thinks, maybe he has another idea.
Logged
~ nevcairiel
~ Author of LAV Filters
Pages: [1]   Go Up