diff options
| author | Mike McQuaid | 2016-08-16 13:48:21 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-08-16 15:26:28 +0100 |
| commit | 560918356738ee71aa7e7110d0e8aa6c8b3dbe4f (patch) | |
| tree | 9f16996cbb2f7f53900e7c74ebda0a79c9e61fe5 /Library/Homebrew/shims | |
| parent | 53d1000739bc29913ab956cff2748428b66f969d (diff) | |
| download | brew-560918356738ee71aa7e7110d0e8aa6c8b3dbe4f.tar.bz2 | |
superenv: add LDFLAGS if disabling weak imports.
Diffstat (limited to 'Library/Homebrew/shims')
| -rwxr-xr-x | Library/Homebrew/shims/super/cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/shims/super/cc b/Library/Homebrew/shims/super/cc index e7ab6500f..8404e29f2 100755 --- a/Library/Homebrew/shims/super/cc +++ b/Library/Homebrew/shims/super/cc @@ -258,8 +258,10 @@ class Cmd case mode when :ld args << "-headerpad_max_install_names" + args << "-no_weak_imports" if no_weak_imports? when :ccld, :cxxld args << "-Wl,-headerpad_max_install_names" + args << "-Wl,-no_weak_imports" if no_weak_imports? end args end @@ -305,6 +307,10 @@ class Cmd config.include?("K") end + def no_weak_imports? + config.include?("w") + end + def canonical_path(path) path = Pathname.new(path) path = path.realpath if path.exist? |
