[RFC]possible improvements to --with-sysroot

2007-03-03 Thread Zhang Le
The following suggestion is based on my understanding of --with-sysroot, if there were any error, please correct me. To my understanding, currently if cross-compile tool chain (including gcc) is configured with --with-sysroot when installing them, then when cross compiling, ld will look for librar

Re: [RFC]possible improvements to --with-sysroot

2007-03-05 Thread Daniel Jacobowitz
On Sat, Mar 03, 2007 at 09:47:41PM +0800, Zhang Le wrote: > Wouldn't it be great that we go one step further that we let ld look > for libraries in the dir listed in $SYSROOT/etc/ld.so.conf, if this > file ever exits? Of course for each entry in $SYSROOT/etc/ld.so.conf, > we prefix $SYSROOT to it.

Re: [RFC]possible improvements to --with-sysroot

2007-03-05 Thread Zhang Le
First of all, my apology. It seems that I should have posted this email to binutils's ML. On 3/5/07, Daniel Jacobowitz <[EMAIL PROTECTED]> wrote: On Sat, Mar 03, 2007 at 09:47:41PM +0800, Zhang Le wrote: > Wouldn't it be great that we go one step further that we let ld look > for libraries in the

Re: [RFC]possible improvements to --with-sysroot

2007-03-05 Thread Daniel Jacobowitz
On Tue, Mar 06, 2007 at 02:05:06AM +0800, Zhang Le wrote: > I have used "strace -f" to check where linker looked for -lqt-mt. From > what I have observed, it seems that ld didn't use > $SYSROOT/etc/ld.so.conf. Well, it's supposed to, so I suggest you check what's happened in ld. -- Daniel Jacobo

Re: [RFC]possible improvements to --with-sysroot

2007-03-05 Thread Zhang Le
On 3/6/07, Daniel Jacobowitz <[EMAIL PROTECTED]> wrote: On Tue, Mar 06, 2007 at 02:05:06AM +0800, Zhang Le wrote: > I have used "strace -f" to check where linker looked for -lqt-mt. From > what I have observed, it seems that ld didn't use > $SYSROOT/etc/ld.so.conf. Well, it's supposed to, so I s

Re: [RFC]possible improvements to --with-sysroot

2007-03-07 Thread Zhang Le
On 3/6/07, Daniel Jacobowitz <[EMAIL PROTECTED]> wrote: On Tue, Mar 06, 2007 at 02:05:06AM +0800, Zhang Le wrote: > I have used "strace -f" to check where linker looked for -lqt-mt. From > what I have observed, it seems that ld didn't use > $SYSROOT/etc/ld.so.conf. Well, it's supposed to, so I s