linux-mips
[Top] [All Lists]

Re: Compiling a non-pic glibc

To: Alex Gonzalez <langabe@gmail.com>
Subject: Re: Compiling a non-pic glibc
From: Daniel Jacobowitz <dan@debian.org>
Date: Sat, 14 Jan 2006 16:34:51 -0500
Cc: linux-mips <linux-mips@linux-mips.org>
In-reply-to: <c58a7a270601120218r77ec0d8drf2d14663138a13c2@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <c58a7a270601120218r77ec0d8drf2d14663138a13c2@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.8i
On Thu, Jan 12, 2006 at 10:18:03AM +0000, Alex Gonzalez wrote:
> Hi,
> 
> What is the correct way of cross-compiling a non-pic static glibc?

You can't.  MIPS/Linux userspace toolchains only support PIC out of the
box; if you want to mess around with non-PIC toolchains expect to have
to hack glibc (and possibly other places).  In this case it looks like
GCC's CRT files are PIC.

-- 
Daniel Jacobowitz
CodeSourcery

<Prev in Thread] Current Thread [Next in Thread>