From: Jon Grant <jg@jguk.org>
To: gcc@gnu.org
Subject: Long paths with ../../../../ throughout
Date: Tue, 19 Jan 2010 17:34:00 -0000 [thread overview]
Message-ID: <19ac3f7a1001190934q65b08a02q37f487bd735311c3@mail.gmail.com> (raw)
Hello
gcc -o t -### test.c
Any easy way to evaluate and reduce command lines? Consider this:
/usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/crt1.o
Is actually the same as: /usr/lib/crt1.o -- which is much clearer!
I'm using Ubuntu 9.04.
Cheers, Jon
$ gcc -o t -### test.c
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.3.3-5ubuntu4'
--with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --enable-targets=all --with-tune=generic
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
--target=i486-linux-gnu
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)
COLLECT_GCC_OPTIONS='-o' 't' '-mtune=generic'
"/usr/lib/gcc/i486-linux-gnu/4.3.3/cc1" "-quiet" "test.c"
"-D_FORTIFY_SOURCE=2" "-quiet" "-dumpbase" "test.c" "-mtune=generic"
"-auxbase" "test" "-fstack-protector" "-o" "/tmp/ccoCNitV.s"
COLLECT_GCC_OPTIONS='-o' 't' '-mtune=generic'
"as" "-Qy" "-o" "/tmp/ccKSwMpH.o" "/tmp/ccoCNitV.s"
COMPILER_PATH=/usr/lib/gcc/i486-linux-gnu/4.3.3/:/usr/lib/gcc/i486-linux-gnu/4.3.3/:/usr/lib/gcc/i486-linux-gnu/:/usr/lib/gcc/i486-linux-gnu/4.3.3/:/usr/lib/gcc/i486-linux-gnu/:/usr/lib/gcc/i486-linux-gnu/4.3.3/:/usr/lib/gcc/i486-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/i486-linux-gnu/4.3.3/:/usr/lib/gcc/i486-linux-gnu/4.3.3/:/usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/:/lib/../lib/:/usr/lib/../lib/:/usr/lib/gcc/i486-linux-gnu/4.3.3/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-o' 't' '-mtune=generic'
"/usr/lib/gcc/i486-linux-gnu/4.3.3/collect2" "--eh-frame-hdr" "-m"
"elf_i386" "--hash-style=both" "-dynamic-linker" "/lib/ld-linux.so.2"
"-o" "t" "-z" "relro"
"/usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/crt1.o"
"/usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/crti.o"
"/usr/lib/gcc/i486-linux-gnu/4.3.3/crtbegin.o"
"-L/usr/lib/gcc/i486-linux-gnu/4.3.3"
"-L/usr/lib/gcc/i486-linux-gnu/4.3.3"
"-L/usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib" "-L/lib/../lib"
"-L/usr/lib/../lib" "-L/usr/lib/gcc/i486-linux-gnu/4.3.3/../../.."
"/tmp/ccKSwMpH.o" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
"-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
"/usr/lib/gcc/i486-linux-gnu/4.3.3/crtend.o"
"/usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/crtn.o"
next reply other threads:[~2010-01-19 17:34 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-19 17:34 Jon Grant [this message]
2010-01-19 17:35 ` Jon Grant
2010-01-19 17:40 ` Jon Grant
2010-01-19 18:18 ` Ian Lance Taylor
2010-01-23 16:26 ` Jon Grant
2010-01-25 18:44 ` Ian Lance Taylor
2010-02-02 22:38 ` Jon
2010-02-02 22:47 ` Ian Lance Taylor
2010-02-03 21:56 ` Jon
2010-02-03 22:46 ` Jon
2010-02-04 1:01 ` Ian Lance Taylor
2010-02-05 20:38 ` Jon
2010-02-20 7:57 ` Jon
2010-02-20 11:48 ` Joseph S. Myers
2010-02-21 0:43 ` Jon
2010-02-22 3:26 ` Ian Lance Taylor
2010-03-14 6:25 ` Jon
2010-03-15 7:35 ` Ian Lance Taylor
2010-04-24 22:47 ` Jon
2010-04-24 22:54 ` Manuel López-Ibáñez
2010-04-25 18:06 ` Ian Lance Taylor
2010-04-25 21:15 ` Manuel López-Ibáñez
2010-04-25 21:23 ` Jon
2010-04-25 21:39 ` Manuel López-Ibáñez
2010-04-26 23:57 ` Jon
2010-04-27 0:59 ` Dave Korn
2010-04-27 7:50 ` Manuel López-Ibáñez
2010-04-27 16:02 ` Dave Korn
2010-04-26 4:13 ` Ian Lance Taylor
2011-07-02 22:04 ` Jon Grant
2011-07-03 4:27 ` Ian Lance Taylor
2011-07-03 7:33 ` Richard Guenther
2011-07-04 20:14 ` Jon Grant
2011-07-05 18:37 ` Ian Lance Taylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19ac3f7a1001190934q65b08a02q37f487bd735311c3@mail.gmail.com \
--to=jg@jguk.org \
--cc=gcc@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).