[Issue 1842] New: Useless linker command line output during compilation on Linux

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 16 00:32:46 PST 2008


http://d.puremagic.com/issues/show_bug.cgi?id=1842

           Summary: Useless linker command line output during compilation on
                    Linux
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: andrei at metalanguage.com


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


-- 



More information about the Digitalmars-d-bugs mailing list