[Issue 1940] Phobos buildscripts do not work on x86_64

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 23 11:33:51 PDT 2008


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





------- Comment #18 from andrei at metalanguage.com  2008-06-23 13:33 -------
(In reply to comment #17)
> So you pass through the CFLAGS from the env of dmd to the env of CC? Just
> asking because I tried to set CFLAGS before, without getting the desired
> effect.
> 
> (Or am I just wrong when I think that dmd calls CC internaly?)

First off, there are C modules in phobos, and for those of course CC and CFLAGS
will apply. Then CC is also invoked for linking. That's about it.

For linking I have added the conventional LDFLAGS variable, which right now is
the concatenation of the homonym environment variable and "-m32" (is that
needed?) I also fixed CFLAGS to pick up the environment variable. (The trick is
to use ":=" when concatenating, not "=".)


-- 



More information about the Digitalmars-d-bugs mailing list