Hi All,

Its like, I need to use some prebuilt android modules' libs(.so
and .a) while building system.img.
I am trying to link those libs using LOCAL_LDLIBS where they are
required and surpassed their building through source code and
Android.mk.

My current situation is:
I want to include prebuilt static lib as a whole in a shared lib.
So in shared libs' Android.mk, I have tried these syntax:

(1) LOCAL_LDLIBS += -L$(SOME_MACRO)/some_dir -Wl,--whole-archive -
llibabc.a -Wl,--no-whole-archive

(2) LOCAL_LDLIBS += -L$(SOME_MACRO)/some_dir -Wl,--whole-archive -labc
-Wl,--no-whole-archive

(3) LOCAL_LDLIBS += -Wl,--whole-archive -l$(SOME_MACRO)/some_dir/
libabc.a -Wl,--no-whole-archive

but they all don't work and linking errors are thrown while building
shared lib.

Please help.

- Naruka

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

Reply via email to