Re: help needed for builing gcc tool-chain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11 February 2012 19:17, Prashant Batra (prbatra) wrote:
> Thanks, Jonathan,
>
> I am able to install gcc 4.1.2 with following configuration:
> ../gcc-4.1.2/configure --prefix=/auto/nobackup-bgl-mitg-dev56/prbatra/fresh/build/ --enable-languages=c,c++,objc
>
> Now, the tool-chain is present in "prefix" directory.
>
> In second try, to make the tool-chain relocatable, I used --with-sysroot=<prefix-dir> while configuring.

GCC is always relocatable, you can move the installation and it will
work in a different location.

> It fails saying /usr/include directory is not present in the <prefix-dir>.
> Have I missed something again?

Did you read the docs for --with-sysroot? It tells the build process
to use the headers and libraries under the sysroot directory instead
of the ones in /usr - so if you have no headers and libraries in the
sysroot directory then it will fail to find them.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux