ccc: Add appropriate file search prefixes when on x86_64 Darwin, and
look for crt3.o appropriately.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62694 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/ccc/ccclib/Tools.py b/tools/ccc/ccclib/Tools.py
index ae170d8..fbf17cb 100644
--- a/tools/ccc/ccclib/Tools.py
+++ b/tools/ccc/ccclib/Tools.py
@@ -1006,9 +1006,7 @@
             if arglist.getLastArg(arglist.parser.sharedLibgccOption):
                 if not arglist.getLastArg(arglist.parser.m_iphoneosVersionMinOption):
                     if macosxVersion < (10,5):
-                        # FIXME: gcc does a library search for this
-                        # file, this will be be broken currently.
-                        cmd_args.append('crt3.o')
+                        cmd_args.append(self.toolChain.getFilePath('crt3.o'))
 
         arglist.addAllArgs(cmd_args, arglist.parser.LOption)