dmd/druntime/phobos makefile horror

Trass3r un at known.com
Thu Dec 29 16:34:13 PST 2011


> The reason is druntime doesn't build separate libs like phobos does.

A quick and dirty patch would be:

diff --git a/posix.mak b/posix.mak
index 5fd7fee..9ed2004 100644
--- a/posix.mak
+++ b/posix.mak
@@ -32,9 +32,9 @@ UDFLAGS=-m$(MODEL) -O -release -nofloat -w -d -Isrc  
-Iimport -property

  CFLAGS=-m$(MODEL) -O

-OBJDIR=obj
+OBJDIR=obj/$(MODEL)
  DRUNTIME_BASE=druntime
-DRUNTIME=lib/lib$(DRUNTIME_BASE).a
+DRUNTIME=lib/$(MODEL)/lib$(DRUNTIME_BASE).a

  DOCFMT=


More information about the Digitalmars-d mailing list