[Issue 2164] New: Random Phobos Linux buildsystem feedback
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 23 01:16:21 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2164
Summary: Random Phobos Linux buildsystem feedback
Product: D
Version: 2.015
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: bugzilla at digitalmars.com
ReportedBy: lindevel at gmx.net
Gentoo has to run these fixes to make dmd 2.015 compile correctly:
# Fix permissions and clean up
fperms ug=rw `find . -type f`
fperms ug=rwx `find . -type d`
fperms ug=rwx bin/dmd bin/dumpobj bin/obj2asm bin/rdmd
# Cleanup line endings
edos2unix `find . -name '*.c' -type f`
edos2unix `find . -name '*.d' -type f`
edos2unix `find . -name '*.ddoc' -type f`
edos2unix `find . -name '*.h' -type f`
edos2unix `find . -name '*.mak' -type f`
edos2unix `find . -name '*.txt' -type f`
# Set variables correctly
sed -i \
-e "s:DMD = .*:DMD = ${S}/bin/dmd:" \
-e "s:CC = .*:CC = gcc -m32:" \
-e "s:CFLAGS = .*:CFLAGS = ${CFLAGS}:" \
`find . -name '*.mak' -type f`
${S} is the sourcecode directory. To make this work generically, I recommend to
either use a relative path, or a variable set to an absolute path. I.e.:
export top_srcdir = $(CURDIR) # Toplevel Makefile
DMD = $(top_srcdir)/bin/dmd
--
More information about the Digitalmars-d-bugs
mailing list