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

See the CrossGCC FAQ for lots more information.


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: Static linked cross tools


It builds!

make configure-host

Adding this line to the binutils build was the key.

Thanks for the help.

On Oct 20, 2004, at 9:08 AM, Stefan Peter wrote:

Allen

I'm currently building a statically linked cross compiler using the patch
attached. It may not be coded according to the high standards of crosstools,
but it works if you call crosstool.sh with
BINUTILS_MAKE_OPTIONS="LDFLAGS=-all-static" and
GCC_MAKE_OPTIONS="LDFLAGS=-static"
BTW, Linux From Scratch (http://www.linuxfromscratch.org) has detailed
descriptions covering building static binutils (Chapter 5, Binutils-2.14 -
Pass 1).


With kind regards

Stefan Peter

On Wednesday 20 October 2004 16.00, Allen Curtis wrote:
BINUTILS_MAKE_OPTIONS="LDFLAGS=-all-static"
# I would advice against using BINUTILS_EXTRA_CONFIG since it's
issued
# to configure - we don't need that
make $BINUTILS_MAKE_OPTIONS all

It appears that the previous message was generated when configuring libiberty. I do not get this error without the LDFLAGS variable.

Part (99%) of binutils' configuring is actually performed while
building,
thus when you issue make, not when you issue configure. One problem I
ran
into is that the configure scripts during make failed with "C compiler
cannot generate executables" because of the LDFLAGS - it should not be
set
while configuring.


I avoided that problem by issuing "make configure-host" before
starting the
make all phase (should've said so right away - slipped my mind). I'm
not
sure if it will remedy your problem too.

Oh, I will try that later and report.


I have not seen the GCC_NO_EXEC problem myself. I'm sorry but I can't
help
you with that.

Binutils versions I have built are 2.13.95 and 2.14

We are using binutils 2.15. I believe this is the default when using the crosstool scripts.

Thanks


------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com

-- Elsoft AG, Switzerland http://www.elsoft.ch Tel ++41 (0)56 483 34 64 Fax ++41 (0)56 493 30 20 <crosstool_make_static.patch.gz>


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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