Jan Kiszka wrote:
 > Perrine Martignoni wrote:
 > ...
 > > -Wl,--wrap,close -Wl,--wrap,shm_open -Wl,--wrap,shm_unlink -Wl,--wrap,mmap
 > > -Wl,--wrap,munmap -L/usr/xenomai_arm-2.3.1uClibc/lib essai_mutex_rt.o
 > > -lpthread_rt -lpthread -lrt -o essai_mutex_rt
 > 
 > I think to remember the ordering makes a difference here: Try to put
 > essai_mutex_rt.o after the libs. That's also what happens when using the
 > Xenomai provided flags.

Yes, the order matters, but essai_mutex_rt.o should be before the
libraries. Xenomai makefiles pass libraries in the LDADD variable, which
is put at the very end of the compilation command line.

 > 
 > Apropos: Use `<xenomai-installation-path>/xeno-config --posix-ldflags`
 > (also for --posix-cflags) to make your life easier. There is generally
 > no need to maintain all the flags on your own - and it's error-prone.

I thought that what Perrine showed us was the result of running make and
that her makefiles really used xeno-config.

-- 


                                            Gilles Chanteperdrix.

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to