Bug 1842 – Useless linker command line output during compilation on Linux
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2008-02-16T02:32:00Z
Last change time
2015-06-09T05:14:57Z
Assigned to
bugzilla
Creator
andrei
Comments
Comment #0 by andrei — 2008-02-16T02:32:45Z
When compiling with dmd on linux, the linker command line is output, e.g.:
$ dmd test
gcc test.o -o test -m32 -Xlinker -L/home/andrei/d/dmd/bin/../lib -lphobos2 -lpthread -lm
$ _
The compiler should only output the linker command in case that failed. Normal linking should issue no message. This has to do with a principle of Unix: silence is golden. Here's the relevant excerpt from a great book (The Art of Unix Programming by Eric Raymond). It's a short and excellent read:
http://www.faqs.org/docs/artu/ch11s09.html
Andrei
Comment #1 by benoit — 2008-02-20T16:01:53Z
*** This bug has been marked as a duplicate of 1837 ***