This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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

Re: ld giving problems when trying to build a cross-compiler.


Richard Lefebvre wrote:
> 
> I used the following for binutils:
> 
> ../binutils-2.10.1/configure --host=$HOST --target=$TARGET
> --prefix=/opt/cross-alpha
> 

For host cross host you also need to specify where the headers and
libraries for the target system reside.  For example, if you have them
in /targets/alpha/include,lib you would specify for configure:

.../configure --target=alpha-unknown-linux
--with-includes=/targets/alpha/include --with-libs=/targets/alpha/lib
--prefix=/where/to/install

-eric

-- 
I will not dissect things unless instructed


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