This is the mail archive of the crossgcc@sourceware.org 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: how to build static toolchain with crosstool-ng?


Lance,
All,

Sorry for the long delay... (mail server issues) :-(

On Tuesday 03 June 2008 01:33:29 Lance Spaulding wrote:
> Can anyone tell me how to build a statically linked toolchain using
> crosstool-ng? 

It's not supported to build static toolchains for now. Sorry.

> Prior to building I tried setting the following two env 
> vars (per the crosstool howto at
> http://www.kegel.com/crosstool/current/doc/crosstool-howto.html) but the
> toolchain is still using shared libs.

> export BINUTILS_EXTRA_CONFIG="LDFLAGS=-all-static"
> export GCC_EXTRA_CONFIG="LDFLAGS=-static"

Even if it were the correct variables, they'd get overwriten when reading
the config file.

You'd better go to the menu, and set them there:
  "binutils" --> "binutils extra config"
and
  "C compiler" --> "gcc extra config"

But I doubt that'd work. Or if it does, it's only by chance. Please report
either case. I'd gladly accept a patch, as I'm not usually building static
TCs.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< °_° >==-- °------------.-------:  X  AGAINST      |  /e\  There is no  |
| http://ymorin.is-a-geek.org/ | * _ * | / \ HTML MAIL    |  """  conspiracy.  |
°------------------------------°-------°------------------°--------------------°


--
For unsubscribe information see http://sourceware.org/lists.html#faq


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