[Issue 1940] Phobos buildscripts do not work on x86_64

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 25 07:53:34 PDT 2008


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


andrei at metalanguage.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|bugzilla at digitalmars.com    |andrei at metalanguage.com




------- Comment #1 from andrei at metalanguage.com  2008-03-25 09:53 -------
(In reply to comment #0)
> The src/phobos/ linux.mak buildscripts will not work on a x86_64 system. They
> need following modification for me:
>     sed -i -e "s:CC=.*:CC=gcc -m32:" `find . -name '*.mak' -type f`
>     sed -i -e "s:CFLAGS=.*:CFLAGS=${CFLAGS}:" `find . -name '*.mak' -type f`
> 
> The first is because dmd does not build x86_64 object files, and thus linking
> into a x86_64 binary will not work. (-m32 left out for linking)
> The second is because it does not respect my provided CFLAGS.
> 
> Additionaly these scripts do not respect my DFLAGS, and g++ is the hardcoded
> C++ compiler.

I don't understand the second change - is the makefile supposed to pick the
CFLAGS and DFLAGS in the current environment?


-- 



More information about the Digitalmars-d-bugs mailing list