[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pthreads and etrax 100 LX

Hello all,

I can run an application using a statically linked pthread library on
my etrax 100 LX devboard, by adding the -static option to the compiler.
But this also causes the glibc library to be linked statically (true?)
and my binary increases from 30K to over 440K.

Now I read something about pthread support being added to cris, all we had
to do was add the compile option -pthread.
I tried this, and indeed now I can leave out the -lpthread link option,
and the application compiles without errors. (before, without the -pthread
option, leaving out the -lpthread link option resulted in missing

But when I try to run the application on the target, I still get a missing
libpthread.so.0 reported.

What would be the exact way to get pthreads working without having to
link glibc as well?

Best regards,