summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/dmd/files/dmd-2.062-makefile.patch')
-rw-r--r--dev-lang/dmd/files/dmd-2.062-makefile.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-lang/dmd/files/dmd-2.062-makefile.patch b/dev-lang/dmd/files/dmd-2.062-makefile.patch
new file mode 100644
index 000000000..50f6a7e2e
--- /dev/null
+++ b/dev-lang/dmd/files/dmd-2.062-makefile.patch
@@ -0,0 +1,35 @@
+The patches allow for MODEL, DMD (compiler for the library) and
+DDOC (documentation generator) to be overriden on the command line.
+--- dmd2/src/dmd/posix.mak
++++ dmd2/src/dmd/posix.mak
+@@ -49,7 +49,7 @@
+ TK=tk
+ ROOT=root
+
+-MODEL=32
++MODEL?=32
+ ifneq (x,x$(MODEL))
+ MODEL_FLAG=-m$(MODEL)
+ endif
+--- dmd2/src/druntime/posix.mak
++++ dmd2/src/druntime/posix.mak
+@@ -37,7 +37,7 @@
+ DOCDIR=doc
+ IMPDIR=import
+
+-MODEL=32
++MODEL?=32
+ override PIC:=$(if $(PIC),-fPIC,)
+
+ DFLAGS=-m$(MODEL) -O -release -inline -w -Isrc -Iimport -property $(PIC)
+--- dmd2/src/phobos/posix.mak
++++ dmd2/src/phobos/posix.mak
+@@ -149,7 +149,7 @@
+ endif
+
+ # Set DDOC, the documentation generator
+-DDOC=$(DMD)
++DDOC?=$(DMD)
+
+ # Set LIB, the ultimate target
+ ifeq (,$(findstring win,$(OS)))