diff options
| author | Jack Nagel | 2013-08-23 11:36:03 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-08-23 11:36:03 -0500 |
| commit | 585d7c6e650f18820092f263d0e20cfae730f5c1 (patch) | |
| tree | d3a1846e95bb59f781439c802b9a1d23ca11c55d /Library/ENV | |
| parent | fdfdbea866d54d9765f5effcc02518bcac70e422 (diff) | |
| download | homebrew-585d7c6e650f18820092f263d0e20cfae730f5c1.tar.bz2 | |
Always pass -headerpad_max_install_names to the linker
We use install_name_tool pretty liberally, so we need to take steps to
ensure libraries and executables are always linked with this flag.
Closes #20233.
Fixes #17984.
Fixes #22078.
Diffstat (limited to 'Library/ENV')
| -rwxr-xr-x | Library/ENV/4.3/cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 62194c8dd..79fb57102 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -191,7 +191,12 @@ class Cmd syslibpath end def ldflags - libpath.to_flags('-L') + args = libpath.to_flags('-L') + case mode + when :ld then args << '-headerpad_max_install_names' + when :ccld then args << '-Wl,-headerpad_max_install_names' + end + args end def cppflags sys, opt = cpath |
