Package: gcc-4.7 Version: 4.7-20120112-1 Severity: important Tags: patch Hi Matthias,
Bill Allombert wrote: > On Fri, Jan 20, 2012 at 03:45:34PM -0600, Jonathan Nieder wrote: >> I believe "gcc -print-multiarch" is supposed to do that. >> >> $ gcc -m32 -print-multiarch >> i386-linux-gnu >> $ gcc -m64 -print-multiarch >> x86_64-linux-gnu > > Thanks a lot for mentionning it. Is that documented ? Hmm, it doesn't seem to be in "gcc --help" output[1]. (FWIW I learned about the option at [2].) Here's a rough patch to fix that. [1] though in the patch proposed upstream it is covered in the texinfo docs http://thread.gmane.org/gmane.comp.gcc.patches/244403 [2] http://wiki.debian.org/Multiarch/Tuples --- gcc.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git i/gcc.c w/gcc.c index c43e45ab..0adc0320 100644 --- i/gcc.c +++ w/gcc.c @@ -2954,6 +2954,9 @@ display_help (void) fputs (_(" -print-libgcc-file-name Display the name of the compiler's companion library\n"), stdout); fputs (_(" -print-file-name=<lib> Display the full path to library <lib>\n"), stdout); fputs (_(" -print-prog-name=<prog> Display the full path to compiler component <prog>\n"), stdout); + fputs (_("\ + -print-multiarch Display the target's normalized GNU triplet, used as\n\ + a component in the library path\n"), stdout); fputs (_(" -print-multi-directory Display the root directory for versions of libgcc\n"), stdout); fputs (_("\ -print-multi-lib Display the mapping between command line options and\n\ -- 1.7.9.rc2 -- To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120123112653.GA29435@burratino