Re: [Xenomai-core] [PATCH] blackfin: build xenomai in FLAT format

2009-02-27 Thread yi li
Thanks. This makes sense to me. -Yi On Thu, Feb 26, 2009 at 7:12 PM, Philippe Gerum r...@xenomai.org wrote: This is why we are talking about two-phase link for static mode. In fact, fixing the issue your reported would require to implement two-phase link conditionally in our Makefiles

Re: [Xenomai-core] [PATCH] blackfin: build xenomai in FLAT format

2009-02-26 Thread Gilles Chanteperdrix
yi li wrote: On Wed, Feb 25, 2009 at 6:23 PM, Gilles Chanteperdrix gilles.chanteperd...@xenomai.org wrote: yi li wrote: On Wed, Feb 25, 2009 at 12:30 AM, Philippe Gerum r...@xenomai.org wrote: 2. libpthread_rt.la should not depend on lpthread. Nak. In flat mode, turning the link

Re: [Xenomai-core] [PATCH] blackfin: build xenomai in FLAT format

2009-02-26 Thread yi li
On Thu, Feb 26, 2009 at 6:20 PM, Gilles Chanteperdrix gilles.chanteperd...@xenomai.org wrote: -lpthread does need to be set in libpthread_rt_la_LDFLAGS, if you look at libpthread_rt code (which you apparently do not want to dot), you will see that it uses libpthread functions. Thanks for the

Re: [Xenomai-core] [PATCH] blackfin: build xenomai in FLAT format

2009-02-26 Thread Gilles Chanteperdrix
yi li wrote: On Thu, Feb 26, 2009 at 6:20 PM, Gilles Chanteperdrix gilles.chanteperd...@xenomai.org wrote: -lpthread does need to be set in libpthread_rt_la_LDFLAGS, if you look at libpthread_rt code (which you apparently do not want to dot), you will see that it uses libpthread functions.

Re: [Xenomai-core] [PATCH] blackfin: build xenomai in FLAT format

2009-02-25 Thread Gilles Chanteperdrix
yi li wrote: On Wed, Feb 25, 2009 at 12:30 AM, Philippe Gerum r...@xenomai.org wrote: 2. libpthread_rt.la should not depend on lpthread. Nak. In flat mode, turning the link dependencies order upside down will not buy us anything. Two-phase link is the only way to prevent circular/invalid

Re: [Xenomai-core] [PATCH] blackfin: build xenomai in FLAT format

2009-02-25 Thread yi li
On Wed, Feb 25, 2009 at 6:23 PM, Gilles Chanteperdrix gilles.chanteperd...@xenomai.org wrote: yi li wrote: On Wed, Feb 25, 2009 at 12:30 AM, Philippe Gerum r...@xenomai.org wrote: 2.  libpthread_rt.la should not depend on lpthread. Nak. In flat mode, turning the link dependencies order upside

Re: [Xenomai-core] [PATCH] blackfin: build xenomai in FLAT format

2009-02-24 Thread Philippe Gerum
yi li wrote: This patch fixes xenomai-2.4.x branch build scripts, to build xenomai as FLAT on Blackfin. 1. -mfdpic option is by default set by bfin-linux-uclibc-gcc. It is not required and it can cause error for bfin-uclinux-gcc. Ack. 2. libpthread_rt.la should not depend on lpthread.

Re: [Xenomai-core] [PATCH] blackfin: build xenomai in FLAT format

2009-02-24 Thread yi li
On Wed, Feb 25, 2009 at 12:30 AM, Philippe Gerum r...@xenomai.org wrote: 2.  libpthread_rt.la should not depend on lpthread. Nak. In flat mode, turning the link dependencies order upside down will not buy us anything. Two-phase link is the only way to prevent circular/invalid dependencies