Don't reject -L/usr/local/lib when SDKROOT is defined#845
Don't reject -L/usr/local/lib when SDKROOT is defined#845tdsmith merged 1 commit intoHomebrew:masterfrom
Conversation
/usr/local/lib is removed from the default linker search path when SDKROOT is defined or sysroot is specified. Homebrew sometimes sets SDKROOT without setting a sysroot as of 45e138f.
|
Seems reasonable to me but I don't see any reference to the prefix in this or the referenced commit but this seems to only relate to a non-standard prefix, right? It feels like this is something that should vary depending on the prefix as |
|
It looks like that case is handled elsewhere; refurbish_args rejects linker search paths that are present in |
👍 |
|
I'm still not clear why /usr/local is being hard coded here. By default there's nothing there, so how is it a "special" path? |
|
@ilovezfs Probably because it's in the default search path for Clang. |
|
Ah ok |
/usr/local/lib is removed from the default linker search path when
SDKROOT is defined or sysroot is specified.
Homebrew sometimes sets SDKROOT without setting a sysroot as of 45e138f.
This is the simplest possible change, but there are some other options:
Fixes #844.