Skip to content

Commit

Permalink
Remove custom LDFLAGS and CFLAGS for osx.
Browse files Browse the repository at this point in the history
OSX 10.5 or greater can use '-Wl,-rpath,/path/to/lib' so we can use
the default flags.

Signed-off-by: Jon Morrow <[email protected]>
  • Loading branch information
Jon Morrow committed Feb 25, 2019
1 parent bf00680 commit 2a1e68f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions lib/omnibus/software.rb
Original file line number Diff line number Diff line change
Expand Up @@ -665,11 +665,6 @@ def with_standard_compiler_flags(env = {}, opts = {})
"OBJECT_MODE" => "64",
"ARFLAGS" => "-X64 cru",
}
when "mac_os_x"
{
"LDFLAGS" => "-L#{install_dir}/embedded/lib",
"CFLAGS" => "-I#{install_dir}/embedded/include -O2",
}
when "solaris2"
if platform_version.satisfies?("<= 5.10")
solaris_flags = {
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/software_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ module Omnibus

it "sets the defaults" do
expect(subject.with_standard_compiler_flags).to eq(
"LDFLAGS" => "-L/opt/project/embedded/lib",
"LDFLAGS" => "-Wl,-rpath,/opt/project/embedded/lib -L/opt/project/embedded/lib",
"CFLAGS" => "-I/opt/project/embedded/include -O2",
"CXXFLAGS" => "-I/opt/project/embedded/include -O2",
"CPPFLAGS" => "-I/opt/project/embedded/include -O2",
Expand Down

0 comments on commit 2a1e68f

Please sign in to comment.