I don't know I am missing the point of the question, but according to
bionic/libc/Android.mk following line removes libc linkage flags from
make commands.
LOCAL_SYSTEM_SHARED_LIBRARIES :=
I tried linking static libc in executable, it seems work, but when I
tried to call static libc in shared library, it didn't work with
strange compilation error.

On Jul 20, 5:58 pm, dinuxlyf <[email protected]> wrote:
> Liu,
>
> i check the Android.mk under bionic/linker and bionic/libc, the linker use
> the static liberary which called libc_nomalloc,
> the major difference between this libc and normal libc is that it doesn't
> provide malloc function. The implementation of malloc function
> is provided by share library libc.so, i guess it would be inappropriate for
> linker to call a share library function.

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to