This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Building with -m32/-m31 support without multilibs
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Wed, 13 Jun 2018 10:32:25 -0500
- Subject: Re: Building with -m32/-m31 support without multilibs
- References: <cb9e90c2-36f7-b7d6-43e8-e07c9f8114a5@redhat.com>
On Wed, Jun 13, 2018 at 03:47:06PM +0200, Florian Weimer wrote:
> I have a 64-bit GNU/Linux system (x86-64 or s390x) and want to build GCC
> with -m32 or -m31 support in the compiler. However, I do not have glibc
> for i386 or s390 installed, only the native (64-bit) version. This
> means that I need to build with --disable-multilib.
>
> Is there still a way to get -m32 or -m31 support in the compiler, for
> compiling and linking with -nostdlib?
Does --enable-targets=all help?
Segher