[cfe-commits] r72412 - in /cfe/trunk: include/clang/Driver/HostInfo.h lib/Driver/Driver.cpp lib/Driver/HostInfo.cpp lib/Driver/ToolChains.cpp lib/Driver/ToolChains.h

Eli Friedman eli.friedman at gmail.com
Tue May 26 10:14:40 PDT 2009


On Tue, May 26, 2009 at 8:54 AM, Daniel Dunbar <daniel at zuster.org> wrote:
> Thanks Eli!
>
> On Tue, May 26, 2009 at 12:52 AM, Eli Friedman <eli.friedman at gmail.com> wrote:
>> +  // FIXME: Figure out some way to get gcc's libdir
>> +  // (e.g. /usr/lib/gcc/i486-linux-gnu/4.3/ for Ubuntu 32-bit); we need
>> +  // crtbegin.o/crtend.o/etc., and want static versions of various
>> +  // libraries. If we had our own crtbegin.o/crtend.o/etc, we could probably
>> +  // get away with using shared versions in /usr/lib, though.
>> +  // We could fall back to the approach we used for includes (a massive
>> +  // list), but that's messy at best.
>
> Do we know how gcc solves this problem? Do they detect it as part of
> configure or just have a few defaults and rely on vendors to ship a
> modified gcc if they use different paths?

I'm pretty sure it just uses information hardcoded into the executable
by configure (it's $PREFIX/lib/gcc/$HOSTTRIPLE/$GCCVERSION).

-Eli




More information about the cfe-commits mailing list