diff --git a/omnibus/config/software/datadog-agent-integrations-py3.rb b/omnibus/config/software/datadog-agent-integrations-py3.rb index 70c6c8ec71c74..d052f53d2df21 100644 --- a/omnibus/config/software/datadog-agent-integrations-py3.rb +++ b/omnibus/config/software/datadog-agent-integrations-py3.rb @@ -49,6 +49,11 @@ source git: 'https://github.com/DataDog/integrations-core.git' +gcc_version = ENV['GCC_VERSION'] +if gcc_version.nil? || gcc_version.empty? + gcc_version = '10.4.0' +end + integrations_core_version = ENV['INTEGRATIONS_CORE_VERSION'] if integrations_core_version.nil? || integrations_core_version.empty? integrations_core_version = 'master' @@ -161,8 +166,8 @@ "PIP_CONFIG_FILE" => "#{pip_config_file}", # Specify C99 standard explicitly to avoid issues while building some # wheels (eg. ddtrace) - "CC" => "/opt/gcc-10.4.0/bin/gcc", - "CXX" => "/opt/gcc-10.4.0/bin/g++", + "CC" => "/opt/gcc-#{gcc_version}/bin/gcc", + "CXX" => "/opt/gcc-#{gcc_version}/bin/g++", "CFLAGS" => "-I#{install_dir}/embedded/include -I/opt/mqm/inc", "CXXFLAGS" => "-I#{install_dir}/embedded/include -I/opt/mqm/inc", "LDFLAGS" => "-L#{install_dir}/embedded/lib -L/opt/mqm/lib64 -L/opt/mqm/lib",