Skip to content

Commit

Permalink
Just use system-provided compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
janten committed Apr 29, 2024
1 parent 98d46e1 commit 35c42a9
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions omnibus/config/software/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
build do
env = with_standard_compiler_flags(with_embedded_path)

env["CC"] = "/opt/gcc-#{ENV['GCC_VERSION']}/bin/gcc"

configure_options = []
configure(*configure_options, env: env)

Expand Down
2 changes: 0 additions & 2 deletions omnibus/config/software/libselinux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
patch source: "ln_no_relative.patch", env: env # fix build with old glibc
patch source: "fcntl_o_path.patch", env: env # don't use relative symlink on installed libraries

env["CC"] = "/opt/gcc-#{ENV['GCC_VERSION']}/bin/gcc"

make "-j #{workers} PREFIX=/ DESTDIR=#{install_dir}/embedded", env: env
make "-j #{workers} install PREFIX=/ DESTDIR=#{install_dir}/embedded", env: env

Expand Down
2 changes: 0 additions & 2 deletions omnibus/config/software/libsepol.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@

patch source: "ln_no_relative.patch", env: env # don't use relative symlink on installed libraries

env["CC"] = "/opt/gcc-#{ENV['GCC_VERSION']}/bin/gcc"

make "-j #{workers} PREFIX=/ DESTDIR=#{install_dir}/embedded", env: env
make "-j #{workers} install PREFIX=/ DESTDIR=#{install_dir}/embedded", env: env

Expand Down
2 changes: 0 additions & 2 deletions omnibus/config/software/openscap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@

patch source: "oscap-io.patch", env: env # add new oscap-io tool

env["CC"] = "/opt/gcc-#{ENV['GCC_VERSION']}/bin/gcc"
env["CXX"] = "/opt/gcc-#{ENV['GCC_VERSION']}/bin/g++"
env["CXXFLAGS"] += " -static-libstdc++ -std=c++11 -DDPKG_DATADIR=/usr/share/dpkg"

cmake_build_dir = "#{project_dir}/build"
Expand Down
1 change: 0 additions & 1 deletion omnibus/config/software/xmlsec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
build do
env = with_standard_compiler_flags(with_embedded_path)

env["CC"] = "/opt/gcc-#{ENV['GCC_VERSION']}/bin/gcc"
env["CFLAGS"] << " -fPIC"
env["CFLAGS"] << " -std=c99"

Expand Down

0 comments on commit 35c42a9

Please sign in to comment.