[cfe-dev] Cross compiling with clang (and sysroot support)

Joerg Sonnenberger joerg at britannica.bec.de
Mon May 20 07:35:35 PDT 2013


On Sat, May 18, 2013 at 11:34:59AM +0200, Stephen Kelly wrote:
> >> If I have to use the sysroot option to tell clang where to find crtX.o
> >> files, then I can't use it to tell clang where to find the zlib headers
> >> and libraries. They are not in the same location as the crti.o etc.
> > 
> > No, that should be done with -B.
> 
> Your response is ambiguous. What are you saying should be specified with -B? 
> The location of the crti.o or the sysroot? How does this response relate to 
> the suggestion to copy files around?

Add -B${WHEREEVER_GCCS_CRTX_O_IS}.

Joerg



More information about the cfe-dev mailing list