[Issue 1940] New: Phobos buildscripts do not work on x86_64
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 25 03:32:10 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1940
Summary: Phobos buildscripts do not work on x86_64
Product: D
Version: 2.012
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: bugzilla at digitalmars.com
ReportedBy: lindevel at gmx.net
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.
My suggestion is to review those files for style.
--
More information about the Digitalmars-d-bugs
mailing list