Building with -m32/-m31 support without multilibs

Florian Weimer fweimer@redhat.com
Wed Jun 13 19:16:00 GMT 2018


On 06/13/2018 05:32 PM, Segher Boessenkool wrote:
> 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?

Right, that seems to work.  Thanks!

Florian



More information about the Gcc-help mailing list