Hi;

r140645 removes /usr/ from the predefined paths list and adds /usr/lib/
instead while this might work for Debian based distributions it won't work
for openSUSE and SUSE since the crtbegin.o is in

/usr/lib64/gcc/x86_64-suse-linux/4.6/crtbegin.o (for x86-64)

which is

/usr + lib64/gcc + target_triple + gcc_version + crtbegin.o

Simple fix is to add /usr/ back to the predefined paths list. Patch
attached.

Regards,
ismail
Index: lib/Driver/ToolChains.cpp
===================================================================
--- lib/Driver/ToolChains.cpp	(revision 140780)
+++ lib/Driver/ToolChains.cpp	(working copy)
@@ -1519,6 +1519,7 @@
   bool Exists;
   llvm::SmallVector<std::string, 8> Paths(D.PrefixDirs.begin(),
       D.PrefixDirs.end());
+  Paths.push_back("/usr");
   Paths.push_back("/usr/lib/");
   const std::string *Triples[] = {&GccTriple, &D.DefaultHostTriple};
   for (llvm::SmallVector<std::string, 8>::const_iterator it = Paths.begin(),
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to