On 6/4/20 9:11 PM, Brian Brazil wrote:
>       * our software must support RedHat 7 because some of our client
>         servers are running on this distribution; the existing client
>         does not compile on this distribution because it uses atomic
>         doubles for thread safety, that is only supported from gcc 4.8
>         (and RHEL 7 has gcc 4.7).
> 
> That's a fun one, is there a way to fallback to something else based on
> macros or similar? I've had similar issues over in Java.

There are at least standard ways to get access to more recent gcc
versions with official support (RHSCL aka Red Hat Software Collections).
CentOS also supports them:
https://www.softwarecollections.org/en/scls/rhscl/devtoolset-8/

This basically works by installing another toolchain to a specific
location (/opt) and sourcing a file or using a provided wrapper with
environment variables (PATH, LD_LIBRARY_PATH, etc.) in order to switch
to the newer version.

Not exactly straight-forward, but it works and should only be necessary
during build, I guess.


Kind regards,
Christian

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-developers/3b8fb63c-8a57-dc93-3140-d4cc0fd5d26b%40hoffmann-christian.info.

Reply via email to