Errors while static linking of Xenomai
Hi all,
sry for my delayed answer.
So what We've actually done was to rewrite the gcc commands for compiling the posix stuff in the testsuite:
Original:
powerpc-generic-linux-uclibc-gcc -Wl,@/home/develop/Download/xenomai-2.4.4/src/skins/posix/posix.wrappers --static -o switchtest switchtest-switchtest.o ../../skins/posix/.libs/libpthread_rt.a -lpthread -lrt
Our fix:
powerpc-generic-linux-uclibc-gcc -Wl,@/home/develop/Download/xenomai-2.4.4/src/skins/posix/posix.wrappers --static -o switchtest -Wl,"-(" switchtest-switchtest.o ../../skins/posix/.libs/libpthread_rt.a -lpthread -lrt -Wl,"-)"
We inserted the -Wl,"-(" ... -Wl,"-)" construct around the linker stuff, so it trys to solve all dependencies in all directions. The errors only occur while compiling the testsuite.
regards,
Christian
----- original Nachricht --------
Betreff: Re: [Xenomai-help] Errors while static linking of Xenomai
Gesendet: Mo, 28. Jul 2008
Von: Gilles Chanteperdrix<[email protected]>
Quoted 6 lines
Quoted 5 lines · Christian Volk
During the day we found a "workaround" or maybe a fix.
I will post details tomorrow from work.
We used -Wl,"-(" archives -Wl,"-)" so we built a start-group - end-group Construct which fixed all issues.
Quoted 9 lines
Quoted 2 lines
Thanks for your answer Philippe, this will help me while creating my own apps.
It would be interesting if we could apply your fix to Xenomai makefiles. Could you give us a little bit more details ?
Signature · 1 line
Gilles.
--- original Nachricht Ende ----