aboutsummaryrefslogtreecommitdiffstats
path: root/Library/ENV
diff options
context:
space:
mode:
Diffstat (limited to 'Library/ENV')
-rwxr-xr-xLibrary/ENV/4.3/cc7
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