public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] static gcc from toolchain: howto?
@ 2000-12-06 12:18 Francis Galiegue
  2000-12-06 20:16 ` Jim Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: Francis Galiegue @ 2000-12-06 12:18 UTC (permalink / raw)
  To: linux-ia64

Hi all,

I've been trying for two days now to compile a static gcc (and possibly other
tools too) but failed. When I try and set LDFLAGS or LDFLAGS_FOR_TARGET to
-static, I get lots of multiple to _nl_* stuff, hence only i18n stuff... And I
cannot seem to get out of it, no matter how I try. There's no static-* target
either.

What is the solution? Or is there a static toolchain binary tree to be d/led
somewhere?

(BTW I've succeeded at the very last to get glibc 2.2 to compile - phew)

-- 
Francis Galiegue, fg@mandrakesoft.com
"Programming is a race between programmers, who try and make more and more
idiot-proof software, and universe, which produces more and more remarkable
idiots. Until now, universe leads the race"  -- R. Cook



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Linux-ia64] static gcc from toolchain: howto?
  2000-12-06 12:18 [Linux-ia64] static gcc from toolchain: howto? Francis Galiegue
@ 2000-12-06 20:16 ` Jim Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: Jim Wilson @ 2000-12-06 20:16 UTC (permalink / raw)
  To: linux-ia64

> When I try and set LDFLAGS or LDFLAGS_FOR_TARGET to
>-static, I get lots of multiple to _nl_* stuff, hence only i18n stuff...

What I used to do was just replace the intl/libintl.a files with empty
archives.

cd intl
rm libintl.a
ar rc libintl.a
cd ..

There are two of these directories, intl, and gcc/intl.  I think this is the
easiest solution.

The real solution is to build and install gettext before running configure.
autoconf checks to see if the host has i18n support by trying to run xgettext.
If the program isn't there, then it assumes that we need to build our own
i18n library.  If you link against a shared glibc, this isn't a problem.
If you link against a static glibc, then you get the multiple definitions
link error.  I suppose if you don't have gcc yet, then building gettext might
be a problem.  So you will need to use a workaround once to bootstrap.

Bill Nottingham's suggestion of using --disable-nls should work too, but you
have to remember to use it before running configure.

Jim


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-12-06 20:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-06 12:18 [Linux-ia64] static gcc from toolchain: howto? Francis Galiegue
2000-12-06 20:16 ` Jim Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox