[cfe-dev] Libtool search path on MacOS

scott constable via cfe-dev cfe-dev at lists.llvm.org
Mon Jun 26 13:58:50 PDT 2017


I just found the rest of the thread here:
https://lists.apple.com/archives/xcode-users/2017/Jan/msg00089.html. The
upshot is that C++ headers are no longer installed to /usr/include on
MacOS. When you install the Xcode command-line tools, the C++ headers are
stored in /Library/Developer/CommandLineTools/usr/include/c++/v1. So
libtools built on MacOS should look here instead of /usr/include/c++/v1.
How can this be done?

On Mon, Jun 26, 2017 at 4:55 PM, Jacob Carlborg via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> On 2017-06-26 22:40, scott constable via cfe-dev wrote:
>
>> Hmmm. I have the same issue as this gentleman:
>> https://forums.developer.apple.com/thread/71209. I do have Xcode CLI
>> tools installed, but it has installed an older version of libc++ in my
>> /usr/include. The installed directory is /usr/include/c++/4.2.1 (I think
>> this is either C++03 or C++98), but my libtool expects
>> /usr/include/c++/v1. So is this actually an unresolved issue with Xcode?
>>
>
> Hmm, that's interesting. c++/4.2.1 is the old libstdc++ and c++/v1 is the
> new libc++, IIRC.
>
> I'm not sure how it should behave. I noticed that if I add the
> "-stdlib=libstdc++" flag it will look in the "/usr/include/c++/4.2.1"
> directory instead of "/usr/include/c++/v1".
>
>
> --
> /Jacob Carlborg
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170626/030f69f2/attachment.html>


More information about the cfe-dev mailing list