Incompatible libphobos2.a?

Trass3r un at known.com
Tue Jan 3 03:10:14 PST 2012


There's another recent thread about this.
The makefile is a mess. it doesn't build separate libs.

Here's a Linux patch for druntime:

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=


and phobos:


diff --git a/posix.mak b/posix.mak
index e43df37..021fff3 100644
--- a/posix.mak
+++ b/posix.mak
@@ -75,9 +75,9 @@ MAKEFILE:=$(lastword $(MAKEFILE_LIST))

  # Set DRUNTIME name and full path
  ifeq (,$(findstring win,$(OS)))
-       DRUNTIME = $(DRUNTIME_PATH)/lib/libdruntime.a
+       DRUNTIME = $(DRUNTIME_PATH)/lib/$(MODEL)/libdruntime.a
  else
-       DRUNTIME = $(DRUNTIME_PATH)/lib/druntime.lib
+       DRUNTIME = $(DRUNTIME_PATH)/lib/$(MODEL)/druntime.lib
  endif

  # Set CC and DMD


More information about the Digitalmars-d mailing list