Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Way arount statically linking software compiled with RHDT

    Posted on

    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

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat