building native shared library with autoconf

21 views
Skip to first unread message

Ke

unread,
May 21, 2009, 6:40:07 PM5/21/09
to android-platform
Hi All,

I've been trying to get libusb-0.1 library compiled for android. It is
an Autoconf type package. I am trying to use arm-eabi-gcc that comes
in the prebuilt folder to build this.

my configure cmd:

./configure --build=i686-linux --host=arm-linux --prefix=/home/demo/
android_nfs_filesystem/system \
CC=arm-eabi-gcc CXX=arm-eabi-g++ \
CFLAGS="\
-I/home/demo/mydroid/bionic/libc/include \
-I/home/demo/mydroid/bionic/libc/arch-arm/include \
-I/home/demo/mydroid/bionic/libstdc++/include \
-I/home/demo/mydroid/bionic/libc/kernel/arch-arm \
-I/home/demo/mydroid/bionic/libc/kernel/common \
-I/home/demo/mydroid/bionic/libm/include \
-I/home/demo/mydroid/bionic/libm/include/arm \
-I/home/demo/mydroid/bionic/libthread_db/include" \
LDFLAGS="-nostdlib \
-Bsymbolic -fPIC -DPIC -Wall \
-L . -L ./.libs -L/home/demo/mydroid/out/target/product/generic/obj/
lib"

this command works fine without a hitch.
It is when I run the make command that it dies near the end.
basically:

/home/demo/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/../
lib/gcc/arm-eabi/4.2.1/../../../../arm-eabi/bin/ld: crt0.o: No such
file: No such file or directory
collect2: ld returned 1 exit status

It is a linker issue so I assume I am missing a flag or two that needs
to be set. If anyone is familiar with the flags to get an Autoconf
package to build for android, that would be really useful.

thanks,
Reply all
Reply to author
Forward
0 new messages