Way arount statically linking software compiled with RHDT

Latest response

Hello everybody,

we currently try to build our software for RHEL7 but we need more recent versions of GCC. Here comes the Red Hat Developer Toolset in to play. Our sole dependency are libc and libstdc++.

The Documentation states:

Certain more recent library features are statically linked into applications built with Red Hat Developer Toolset to support execution on multiple versions of Red Hat Enterprise Linux...

And later:

Because of this accitional security risk, developers are strongly advised not to statically link their entire application for the same reasons. 

Is there a way around statically linking to build an app with the latest features of c++17 and run it on stock RHEL7 (ignoring the virtualisation option)?

Best regards,

Hubert

Responses