This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: multilib build


* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]