<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Should not this change include a fs check for
/usr/lib/x86_64-linux-gnu/crt1.o as one of the else if options, not
to mention the rest of the architectures Debian supports and builds
clang against?<br>
<br>
Debian clearly has moved to the /usr/lib/architecture-linux-gnu/
approach for i386 and amd64/x86_64.<br>
<br>
ARM seems uniquely distinct with their gnu reference:<br>
<br>
Armel for Debian is /usr/lib/arm-linux-gnueabi/crt1.0<br>
Armhf for Debian is /usr/lib/arm-linux-gnueabihf/crt1.0<br>
<br>
The rest from Alpha to Sparc are as follows<br>
<br>
/usr/lib/architecture-linux-gnu/crt1.0... with the exception of
FreeBSD on Debian:<br>
<br>
/usr/lib/architecture-kfreebsd-gnu/crt1.0<br>
<br>
Source: <a
href="http://packages.debian.org/search?suite=sid&arch=any&searchon=contents&keywords=crt1.o">http://packages.debian.org/search?suite=sid&arch=any&searchon=contents&keywords=crt1.o</a><br>
<br>
<br>
- Marc<br>
<br>
On 10/02/2011 04:53 PM, Miles Bader wrote:
<blockquote cite="mid:87wrcn0x40.fsf@catnip.gol.com" type="cite">
<pre wrap="">+++ clang-2.9/tools/clang/lib/Driver/ToolChains.cpp
@@ -1531,6 +1531,14 @@ Linux::Linux(const HostInfo &Host, const
Paths.push_back(Base + "/../../..");
if (Arch == getArch() && IsUbuntu(Distro))
Paths.push_back("<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>usr/lib<span class="moz-txt-tag">/</span></i>" + GccTriple);
+ if (Distro == DebianWheezy && Arch == getArch())
+ {
+ if (!llvm::sys::fs::exists("<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>usr/lib<span class="moz-txt-tag">/</span></i>" + GccTriple + "/crt1.o", Exists) && Exists)
+ Paths.push_back("<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>usr/lib<span class="moz-txt-tag">/</span></i>" + GccTriple);
+ else if (Is32Bits &&
+ !llvm::sys::fs::exists("/usr/lib/i386-linux-gnu/crt1.o", Exists) && Exists)
+ Paths.push_back("/usr/lib/i386-linux-gnu");
+ }
}</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
Marc J. Driftmeyer<br>
Email :: <a href="mailto:mjd@reanimality.com">mjd@reanimality.com</a><br>
Web :: <a href="http://www.reanimality.com">http://www.reanimality.com</a><br>
Cell :: (509) 435-5212
</div>
</body>
</html>