This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: TR: Pb while building gcc-2.95.3 cross compiler for powerpc


J.N. Helal wrote:
4) I use the gcc configure command as follow:
./configure --target=powerpc-linux --prefix=/usr/local --with-gnu-as --with-
gnu-ld
--with-header=/usr/local/powerpc-linux/include --with-header=/usr/local/powe
rpc-linux/sys-include --enable-threads=posix

You probably want to use a --with-libs= option to tell gcc where the target libraries are.


It is --with-headers= not --with-header. When you use --with-headers=, configure will copy the header files into $prefix/$target/sys-include. There is no need for you to put them there yourself. I don't think using two --with-headers= options will work right. You just want one for the target's /usr/include directory. If you really need more than one, then --with-headers= won't work for you.

Newer gcc's have a --with-sysroot configure option that is easier to use. This will appear in gcc-3.3.3.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]