freebsd-ports/lang/dmd1/files/patch-src-dmd-posix.mak
Cy Schubert f53bb29eca lang/dmd is no longer the primary dmd port as it is no longer supported
by digitalmars.com. It logically switches places with dmd2. dmd2 retains
the dmd2 name while lang/dmd is renamed to dmd1.
2014-04-14 19:46:59 +00:00

28 lines
590 B
Makefile

--- ../../src/dmd/posix.mak.orig 2012-12-31 12:16:46.000000000 -0800
+++ ../../src/dmd/posix.mak 2013-09-27 22:38:06.189546090 -0700
@@ -49,7 +49,6 @@
TK=tk
ROOT=root
-MODEL=32
ifneq (x,x$(MODEL))
MODEL_FLAG=-m$(MODEL)
endif
@@ -73,7 +72,7 @@
LDFLAGS=-lm -lstdc++ -lpthread
endif
-HOST_CC=g++
+HOST_CC=$(CXX)
CC=$(HOST_CC) $(MODEL_FLAG) $(TARGET_CFLAGS)
#OPT=-g -g3
@@ -572,7 +571,7 @@
$(CC) -c $(GFLAGS) -I$(ROOT) $<
strtold.o: $C/strtold.c
- gcc $(MODEL_FLAG) -I$(ROOT) -c $<
+ $(CC) $(MODEL_FLAG) -I$(ROOT) -c $<
struct.o: struct.c
$(CC) -c $(CFLAGS) $<