www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Bug 57] New: DMD should support linking with something other than "gcc"

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/bugzilla/show_bug.cgi?id=57

           Summary: DMD should support linking with something other than
                    "gcc"
           Product: D
           Version: 0.150
          Platform: All
               URL: http://www.digitalmars.com/drn-
                    bin/wwwnews?digitalmars.D.bugs/6650
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: unknown simplemachines.org


Currently, "gcc" is hardcoded in link.c.  It seems to me that this should,
instead, respect the $CC environment variable - so that, at least, a "gcc32"
could easily be used by modifying dmd.conf (without creating a silly symlink or
something.)

This would probably be more portable and work better when gcc is not on the
path, but CC is set.

Thanks,
-[Unknown]


-- 
Mar 19 2006
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/bugzilla/show_bug.cgi?id=57





------- Comment #1 from unknown simplemachines.org  2006-03-20 01:58 -------
Created an attachment (id=6)
 --> (http://d.puremagic.com/bugzilla/attachment.cgi?id=6&action=view)
Change link.c to respect $CC, if set.

This patch simply tries a getenv for CC, but falls back to gcc.

-[Unknown]


-- 
Mar 19 2006
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/bugzilla/show_bug.cgi?id=57


larsivar igesund.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |larsivar igesund.net




------- Comment #2 from larsivar igesund.net  2006-05-09 04:59 -------
This bug was apparently fixed in 0.151, could someone verify it?


-- 
May 09 2006