[cfe-dev] How can I tell clang to use (link to) a specific libc++ shared library?
Jonathan Roelofs
jonathan at codesourcery.com
Thu Sep 18 16:07:19 PDT 2014
On 9/18/14 4:13 PM, Steven Lu wrote:
> Hi all,
>
>
> My follow-up question to this is: Can you show me where it is hardcoded?
See clang/lib/Driver/ToolChains.cpp. A specific example is around line 600 in
`void DarwinClang::AddCXXStdlibLibArgs()`
If you want to install your own, the best bet is to make a separate sysroot (in,
say, /opt/foo), and install it there. Installing in the root directory, as you
say, is pretty dangerous on OSX.
Cheers,
Jon
>
> Thanks
> Steven
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
--
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded
More information about the cfe-dev
mailing list