[cfe-commits] [PATCH] Add libstdc++ search paths for GCC 4.6.0 on Arch Linux

Jakub Wieczorek fawek at fawek.net
Mon Apr 25 12:08:03 PDT 2011


Hello,

With GCC 4.6.0 installed in Arch Linux, clang doesn't search the
architecture specific subdirectory of the libstd++'s headers.
Attaching a patch that fixes the problem.

While we're at it, is there a reason why the proper search paths are
not detected at run time similarly to how library paths are? Instead
of hard coding the GCC version for a particular distribution version,
it could simply look for all the versions and pick the newest one. In
the case of Arch, it is an even better idea because there are no Arch
releases per se and the user should be free to have whatever version
of GCC they want, no matter what the particular distro version is. On
top of that, it seems to me that mixing libraries from one GCC version
and headers from a different one might not always be safe, am I right?
I guess, in that case it doesn't really make a difference because the
dynamically detected library would always be at most newer than the
headers anyway.

Would such a change be accepted? I'll be happy to do this.

Best regards,
Jakub Wieczorek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: archlinux-gcc-4.6.0-searchpaths.patch
Type: text/x-patch
Size: 869 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110425/1eab3172/attachment.bin>


More information about the cfe-commits mailing list