Skip to content
Snippets Groups Projects
Commit cbd018a2 authored by Jack Nagel's avatar Jack Nagel
Browse files

Fix duplicate -stdlib flags in cxxld mode

When the cc wrapper is in cxxld mode, -stdlib= is added by both cxxflags
and ldflags, but they are never used separately, so this results in
duplicate flags.
parent df3e6bad
No related branches found
No related tags found
No related merge requests found
......@@ -271,12 +271,10 @@ class Cmd
def ldflags
args = path_flags("-L", libpath)
case mode
when :ld then args << '-headerpad_max_install_names'
when :ccld then args << '-Wl,-headerpad_max_install_names'
when :cxxld
args << '-Wl,-headerpad_max_install_names'
args << '-stdlib=libc++' if cccfg? 'g'
args << '-stdlib=libstdc++' if cccfg? 'h'
when :ld
args << "-headerpad_max_install_names"
when :ccld, :cxxld
args << "-Wl,-headerpad_max_install_names"
end
args
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment