[Issue 1940] Phobos buildscripts do not work on x86_64

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 9 05:44:53 PDT 2008


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





------- Comment #3 from lindevel at gmx.net  2008-06-09 07:44 -------
The issue is still present in 2.014.

$(LIB) : $(SRC2LIB) $(OBJS) $(MAKEFILE_LIST)
    @echo $(DMD) $(DFLAGS) -lib -of$@ "[...tons of files...]"
    @$(DMD) $(DFLAGS) -lib -of$@ $(SRC2LIB) $(OBJS)

Since CC is no longer listed there, I assume that now dmd generates the library
by calling internaly what I assume is the environment variable CC.
It does not seem to know about its own limitation of being unable to generate
64bit code, and forgets to tell CC (in my case GCC) to create a 32bit library.

-m32 is understood by at least GCC and ICC, so even though it is not portable
per se, it seems good enough to be passed to CC.


-- 



More information about the Digitalmars-d-bugs mailing list