Re: [ptxdist] [PATCH] ptxd_install_shared: Fix missing links when ${src} is a symlink itself

2013-03-22 Thread Michael Olbrich
On Thu, Mar 21, 2013 at 07:34:09PM +0100, Bernhard Walle wrote: When ${src} is a symlink to some other directory, then not all symbolic links to the library are installed. In my case I'm using a ct-ng-based toolchain where ${TOOLCHAIN_BASE}/arm-unknown-linux-gnueabi/lib/ is a symbolic link

[ptxdist] [PATCH] Fix (host) gcc wrapper on Gentoo Linux

2013-03-22 Thread Bernhard Walle
On Gentoo, the host compiler can only be executed if basename(argv[0]) is 'gcc' (or 'g++' etc.), not if it's 'gcc.real'. Then it invokes gcc-config and fails: | % ln -s /usr/bin/gcc gcc.real | % ./gcc.real --version | | * gcc-config: Could not get portage CHOST! | * gcc-config: You should

Re: [ptxdist] [PATCH] Fix (host) gcc wrapper on Gentoo Linux

2013-03-22 Thread Marc Kleine-Budde
On 03/22/2013 12:27 PM, Bernhard Walle wrote: On Gentoo, the host compiler can only be executed if basename(argv[0]) is 'gcc' (or 'g++' etc.), not if it's 'gcc.real'. Then it invokes gcc-config and fails: | % ln -s /usr/bin/gcc gcc.real | % ./gcc.real --version | | * gcc-config:

Re: [ptxdist] [PATCH] Fix (host) gcc wrapper on Gentoo Linux

2013-03-22 Thread Bernhard Walle
* Marc Kleine-Budde m...@pengutronix.de [2013-03-22 15:17]: We don't want to have this loop in the hot path. Iff we agree on the real/X instead of X.real solution, then you should convert all (host and cross) to use real/X Agreed. But I'm waiting if mol accepts the change at all before I'm

Re: [ptxdist] [PATCH] Fix (host) gcc wrapper on Gentoo Linux

2013-03-22 Thread Marc Kleine-Budde
On 03/22/2013 03:31 PM, Bernhard Walle wrote: * Marc Kleine-Budde m...@pengutronix.de [2013-03-22 15:17]: We don't want to have this loop in the hot path. Iff we agree on the real/X instead of X.real solution, then you should convert all (host and cross) to use real/X Agreed. But I'm

Re: [ptxdist] [PATCH] Fix (host) gcc wrapper on Gentoo Linux

2013-03-22 Thread Michael Olbrich
On Fri, Mar 22, 2013 at 03:31:52PM +0100, Bernhard Walle wrote: * Marc Kleine-Budde m...@pengutronix.de [2013-03-22 15:17]: We don't want to have this loop in the hot path. Iff we agree on the real/X instead of X.real solution, then you should convert all (host and cross) to use real/X

[ptxdist] [PATCH] Fix (host) gcc wrapper on Gentoo Linux

2013-03-22 Thread Bernhard Walle
On Gentoo, the host compiler can only be executed if basename(argv[0]) is 'gcc' (or 'g++' etc.), not if it's 'gcc.real'. Then it invokes gcc-config and fails: | % ln -s /usr/bin/gcc gcc.real | % ./gcc.real --version | | * gcc-config: Could not get portage CHOST! | * gcc-config: You should

Re: [ptxdist] [PATCH] Fix (host) gcc wrapper on Gentoo Linux

2013-03-22 Thread Michael Olbrich
On Fri, Mar 22, 2013 at 04:18:45PM +0100, Bernhard Walle wrote: On Gentoo, the host compiler can only be executed if basename(argv[0]) is 'gcc' (or 'g++' etc.), not if it's 'gcc.real'. Then it invokes gcc-config and fails: | % ln -s /usr/bin/gcc gcc.real | % ./gcc.real --version | |