[PATCH] [ASan] Fixed path to Android bin directory

Evgeniy Stepanov eugeni.stepanov at gmail.com
Fri Oct 11 01:55:33 PDT 2013


Yes, when -B includes /bin/, linker does not get any -L. Without /bin/
it get the following list (all prefixed with -B path):
lib/gcc/arm-linux-androideabi/4.6
lib/gcc/arm-linux-androideabi/4.6/../../../../lib32
lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/lib
lib/gcc/arm-linux-androideabi/4.6/../../..

"man gcc" tells us that "This option specifies where to find the
executables, libraries, include files, and data files of the compiler
itself" and gives "/usr/lib/gcc/" as a sample value. I'd say this
option value should not include '/bin/', and the driver should add it
internally when looking for binaries. WDYT?


On Fri, Oct 11, 2013 at 12:49 PM, Renato Golin <renato.golin at linaro.org> wrote:
> On 11 October 2013 09:37, Evgeniy Stepanov <eugeni.stepanov at gmail.com>
> wrote:
>>
>> With this change, I get
>>
>> arm-linux-androideabi-ld: error: cannot find -lgcc
>
>
> Looks like the -L parameters are not being passed down the linker.
>
> I had this problem when cross-compiling, when I had to manually specify -L,
> even though they were in the path for the compiler, so that it would pass
> the option down to the linker.
>
> cheers,
> --renato



More information about the llvm-commits mailing list