This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: multilib build
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: "Warlich\, Christof" <christof dot warlich at siemens dot com>
- Cc: "libc-help\@sourceware.org" <libc-help at sourceware dot org>
- Date: Thu, 05 Jan 2017 22:27:38 +0100
- Subject: Re: multilib build
- Authentication-results: sourceware.org; auth=none
- References: <6D83E89737156549AEA25EF9ED712C5D212721@DEFTHW99EK1MSX.ww902.siemens.net>
* Christof Warlich:
> $ gcc -print-multi-lib
> .;
> 32;@m32
> x32;@mx32
> My question: Is there any safe way to obtain the right host triplet
> for each glibc build? Or is there an easier way to build the related
> glibcs for a multilib gcc?
I think you can use the flags extracted from the above in conjunction
with -print-multiarch, that is:
$ gcc -print-multiarch
x86_64-linux-gnu
$ gcc -m32 -print-multiarch
i386-linux-gnu
$ gcc -mx32 -print-multiarch
x86_64-linux-gnux32