if I run :
CC=arm-linux-gcc ./configure --platform=android
make
it will fail:
monkey.o: In function `mk_thread_keys_init':
monkey.c:(.text+0x110): undefined reference to `pthread_key_create'
monkey.c:(.text+0x11c): undefined reference to `pthread_key_create'
monkey.c:(.text+0x128): undefined reference to `pthread_key_create'
monkey.c:(.text+0x134): undefined reference to `pthread_key_create'
monkey.c:(.text+0x140): undefined reference to `pthread_key_create'
monkey.o:monkey.c:(.text+0x14c): more undefined references to
`pthread_key_create' follow
mk_request.o: In function `mk_session_create':
mk_request.c:(.text+0x6e0): undefined reference to `pthread_getspecific'
mk_request.o: In function `mk_session_get':
mk_request.c:(.text+0x740): undefined reference to `pthread_getspecific'
mk_request.o: In function `mk_session_remove':
mk_request.c:(.text+0x7b0): undefined reference to `pthread_getspecific'
.............
So , I run :
CC=arm-linux-gcc LDFLAGS=-pthread ./configure --platform=android
make
it will success .
I check src/monkey.c , it always include #include <pthread.h>, but in
configure ,writing:
if [ $platform == "generic" ]; then
libs="-pthread"
elif [ $platform == "android" ]; then
libs=""
fi
It will always fail without custom LDFLAGS
--
Wendal Chen
GuangDong China
_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey