Static linked cross tools
Stefan Peter
s.peter@elsoft.ch
Wed Oct 20 16:08:00 GMT 2004
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crosstool_make_static.patch.gz
Type: application/x-gzip
Size: 528 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20041020/93de6d54/attachment.bin>
-------------- next part --------------
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list