Re: Android Native GCC 4.9.2 Build Fails at Dynamic libgcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/23/2014 10:05 AM, Cyd Haselton wrote:
> Last additional questions:
> 1) Why did the 4.8.3 on-device build pick up the necessary -ldl from
> LIBS, while the 4.9.2 build does not?
>    (I've been working on this problem for a while...including going
> through the Changelogs for GCC, libgcc, etc...I've not found what
> changed between 4.8.x and 4.9.x that would cause this)

I don't know.  linus-android.h does contain

#define ANDROID_LIB_SPEC \
  "%{!static: -ldl}"

so it should work.  Does that appear in -dumpspecs?

> 2) Are the linker script specs visible by gcc -dumpspecs, and editable
> by modifying linux-android.h and gnu-user.h?
>    (I've modified both to add -ldl, with no results...i.e. same error)

No.  GCC doesn't even know that /usr/lib/libc.so is a linker script.

Given that Android doesn't seem to use this scheme, it's probably a
red herring.

Andrew.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux