diff options
| author | Jack Nagel | 2014-05-10 17:10:40 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-10 17:14:30 -0500 |
| commit | cbd018a2db0b6a49b06cd197086d0a340dfc9f07 (patch) | |
| tree | 70675776bc36350f88eafa9bb45505fd9bfa10a7 /Library/ENV | |
| parent | df3e6bade5123a196e3f687ef00d46ae74845e67 (diff) | |
| download | brew-cbd018a2db0b6a49b06cd197086d0a340dfc9f07.tar.bz2 | |
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.
Diffstat (limited to 'Library/ENV')
| -rwxr-xr-x | Library/ENV/4.3/cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index d2c581d34..2647554ad 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -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 |
