Bug 57 – DMD should support linking with something other than "gcc"

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
Linux
Creation time
2006-03-20T01:56:00Z
Last change time
2014-02-15T02:08:17Z
Assigned to
bugzilla
Creator
bugs-d

Attachments

IDFilenameSummaryContent-TypeSize
6bug57.diffChange link.c to respect $CC, if set.text/plain454

Comments

Comment #0 by bugs-d — 2006-03-20T01:56:05Z
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]
Comment #1 by bugs-d — 2006-03-20T01:58:37Z
Created attachment 6 Change link.c to respect $CC, if set. This patch simply tries a getenv for CC, but falls back to gcc. -[Unknown]
Comment #2 by larsivar — 2006-05-09T04:59:42Z
This bug was apparently fixed in 0.151, could someone verify it?
Comment #3 by bugzilla — 2006-06-20T02:05:18Z
Fixed 0.151