On 12/14/2012 02:07:23 AM, Gerd Hoffmann wrote:
Hi,
> No, they are with prefix, just not in $PATH. I have more than one
> "powerpc-linux-gnu" toolchain and I don't want to mess with my $PATH
> constantly to choose between them.
# ls -l /usr/bin/*-gcc
-rwxr-xr-x. 2 root root 264112 Aug 23 2011
/usr/bin/i686-pc-mingw32-gcc
-rwxr-xr-x. 2 root root 268216 Oct 18 18:24
/usr/bin/x86_64-redhat-linux-gcc
I think the second part ("pc" / "redhat") can be choosen pretty freely
when building gcc, so you could name your cross compilers differently,
then have them in PATH and pick by name instead of typing full paths.
For the most part I don't build these toolchains, so that's not an
option. Plus, I like having each toolchain fully contained in its own
directory. And this worked fine before pixman.
> No, it's real name is
>
/home/scott/fsl/tc/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-gcc
./configure
--cross-prefix=/home/scott/fsl/tc/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-
&& make ?
A few more options than that, but basically yes.
I can get past this particular obstacle by doing something like:
(PATH=/home/scott/.../powerpc-linux-gnu/bin:"$PATH" ./configure
--cross-prefix=powerpc-linu-gnu- ...)
and then
(PATH=/home/scott/.../powerpc-linux-gnu/bin:"$PATH" make)
...but then I run into the problem that --extra-cflags and
--extra-ldflags don't get passed into pixman.
-Scott