public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Kaz Kylheku" <kaz@zeugmasystems.com>
To: "Kai Ruottu" <karuottu@mbnet.fi>
Cc: <gcc-help@gcc.gnu.org>
Subject: RE: Gcc+binutils+libc cross-compiling: path to libc.so.6 malformed in  "ld".
Date: Tue, 29 Aug 2006 04:29:00 -0000	[thread overview]
Message-ID: <66910A579C9312469A7DF9ADB54A8B7D3659AF@exchange.ZeugmaSystems.local> (raw)

> Kai Ruottu wrote: 
>  What I have thought being the aim in producing a "normal" glibc,
> one which should work both as a "native" glibc, and as a "cross"
> glibc, is using the '--prefix=/usr'.

In my case, my native system is x86, and the cross one is MIPS.

Even if the architectures are the same, I don't believe in
mixing target code with the development platform. There is
the potential to screw things up.

If you're cross-compiling, you should run the code on the
target system, or in some isolated environment on the development
system (emulator with support for a different CPU if necessary,
chrooted tree, ...).  With chroot, you can have the library
installed in /lib, exactly as on the target.

There is the problem of sharing the same kernel as the host
system too. On my development system, I might be running some
old kernel, but want a newer one underneath the target glibc.

> 
>      make install_root=$sysroot

I patched glibc's configure.in and config.make to support
--with-sysroot, which sets up that variable at configuration time.

It's surprising that such an important variable is left out from
the configuration.

             reply	other threads:[~2006-08-28 22:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-29  4:29 Kaz Kylheku [this message]
2006-08-29  8:37 ` Kai Ruottu
  -- strict thread matches above, loose matches on Subject: below --
2006-08-25 17:56 Kaz Kylheku
2006-08-28  9:18 ` Kai Ruottu
2006-08-28  9:52   ` Kai Ruottu
2006-08-25  0:46 Kaz Kylheku
2006-08-24 19:04 Kaz Kylheku
2006-08-24  5:03 Kaz Kylheku
2006-08-24  9:30 ` Kai Ruottu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=66910A579C9312469A7DF9ADB54A8B7D3659AF@exchange.ZeugmaSystems.local \
    --to=kaz@zeugmasystems.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=karuottu@mbnet.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).