-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Make -Wl,-headerpad_max_install_names a default compiler flag #20233
Comments
Good idea/points. |
For reference, MacPorts started doing this in trunk as of their r104258 |
+1 |
Okay, I tried adding this to superenv: https://github.com/jacknagel/homebrew/compare/headerpad I don't like the conditional and I'm not confident that it won't break, but the idea is that when the wrapper is in I see that I stated earlier that it would be "trivial" to add to stdenv, but of course I don't remember why. Perhaps we can just add /cc @adamv @mistydemeo |
Okay, both gentoo and macports treat LDFLAGS as suitable for passing to |
Sounds good to me. From what I can see this is supported back to 10.4 (though at least at one point it was 32-bit only), so no compatibility issues to worry about. |
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 Homebrew#20233. Fixes Homebrew#17984. Fixes Homebrew#22078.
Since we use
install_name_tool
liberally, we should be using this flag by default. This would resolve some issues that happen from time to time (we may seem similar issues when we start bottling more stuff).It's trivial to add it to stdenv, but to add it to superenv we need to be able to use
-Wl,-headerpad_max_install_names
when the cc wrapper is invoked in:cc
and:ccld
mode and just-headerpad_max_install_names
when invoked in:ld
mode.The text was updated successfully, but these errors were encountered: