guide for building DMD/Phobos from SVN (on Linux)?
Sean Kelly
sean at invisibleduck.org
Thu Jun 24 12:13:38 PDT 2010
The weird thing about building phobos is that it depends on druntime being accessible. I publish everything to /usr/local/include/d and /usr/local/lib. I have a script at the top-level of each SVN tree to take care of everything for me. Hopefully they'll clue you into what you're missing.
Here's the druntime one:
#!/bin/bash
sudo rm -f /usr/local/include/d/object.*
sudo rm -fr /usr/local/include/d/core
pushd ./trunk
make -fposix.mak
popd
sudo mkdir -p /usr/local/include/d/core
sudo cp -f ./trunk/import/object.* /usr/local/include/d/.
sudo cp -fr ./trunk/import/core/* /usr/local/include/d/core/.
sudo cp -f ./trunk/lib/libdruntime.a /usr/local/lib/.
And here's the phobos one:
#!/bin/bash
sudo rm -fr /usr/local/include/d/std
sudo rm -fr /usr/local/include/d/etc
pushd ./trunk/phobos
make -flinux.mak DRUNTIME_PATH=/usr/local
sudo rm -f /usr/local/lib/libphobos2.a
popd
sudo mkdir /usr/local/include/d/std
sudo mkdir /usr/local/include/d/etc
sudo cp -fr ./trunk/phobos/std/* /usr/local/include/d/std/.
sudo cp -fr ./trunk/phobos/etc/* /usr/local/include/d/etc/.
sudo cp -f ./trunk/phobos/generated/posix/release/libphobos2.a /usr/local/lib/.
My dmd.conf looks like so:
[Environment]
DFLAGS=-I/usr/local/include/d -L-L/usr/local/lib
More information about the Digitalmars-d
mailing list