[cfe-commits] [PATCH] Allow clang to find libstdc++ 4.4.4 on CentOS i386

Iain Templeton iain at ugh.net.au
Wed Oct 12 05:45:18 PDT 2011


The attached patch adds the i386-redhat-linux6E triple to the header and 
library search paths. This is necessary to find libstdc++ 4.4.4 on 
CentOS 5. This matches the check for x86_64 CentOS/RHEL 5.x added in

r133156 | chapuni | 2011-06-16 22:43:57 +1000 (Thu, 16 Jun 2011) | 4 lines

Be aware of (x86_64-redhat-linux6E-)g++44 on RHEL5.

AFAIK, RHEL5 (and its clones) provides g++44 as the package "gcc44-c++".
By default, g++-4.1.1 is available, though, its libstdc++ would not be 
suitable to clang++.


It also adds a check for CentOS 6 as part of the distro checks in 
ToolChains.cpp, although I could take that part back out.

This might be an appropriate fix for PR9990.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: centos-i386.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111012/869faaaf/attachment.ksh>

More information about the cfe-commits mailing list