On Sun, Aug 19, 2012 at 7:44 AM, Wendal Chen <[email protected]> wrote:
> 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
>

which specific toolchain are you using ?, you can get some
instructions from here:

          https://github.com/maheshgondi/monkey-new/wiki/compile-for-android

-- 
Eduardo Silva
http://edsiper.linuxchile.cl
http://www.monkey-project.com
_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to