diff options
author | cy <cy@FreeBSD.org> | 2011-06-25 08:46:22 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2011-06-25 08:46:22 +0800 |
commit | 4d765be215be3dbba3baa015470ad3adee218897 (patch) | |
tree | 1e14a5550c63c9a7d84860f0074b62ebeb839e38 /lang | |
parent | 2ea63a70fda7b62dff9a386935ba116aee1a52cb (diff) | |
download | freebsd-ports-gnome-4d765be215be3dbba3baa015470ad3adee218897.tar.gz freebsd-ports-gnome-4d765be215be3dbba3baa015470ad3adee218897.tar.zst freebsd-ports-gnome-4d765be215be3dbba3baa015470ad3adee218897.zip |
Fix build for amd64.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/dmd2/Makefile | 1 | ||||
-rw-r--r-- | lang/dmd2/files/patch-src-dmd-freebsd.mak | 11 | ||||
-rw-r--r-- | lang/dmd2/files/patch-src-druntime-posix.mak | 47 |
3 files changed, 58 insertions, 1 deletions
diff --git a/lang/dmd2/Makefile b/lang/dmd2/Makefile index 86aa2923a1ff..b5a0ec6d595d 100644 --- a/lang/dmd2/Makefile +++ b/lang/dmd2/Makefile @@ -15,7 +15,6 @@ DISTNAME= dmd.${PORTVERSION} MAINTAINER= cy@FreeBSD.org COMMENT= D 2.0 compiler, not officially validated for FreeBSD -# ONLY_FOR_ARCHS= i386 USE_ZIP= yes USE_GMAKE= yes MAKEFILE= freebsd.mak diff --git a/lang/dmd2/files/patch-src-dmd-freebsd.mak b/lang/dmd2/files/patch-src-dmd-freebsd.mak new file mode 100644 index 000000000000..a7e58e2831c7 --- /dev/null +++ b/lang/dmd2/files/patch-src-dmd-freebsd.mak @@ -0,0 +1,11 @@ +--- freebsd.mak.orig 2011-06-24 17:02:51.938546700 -0700 ++++ freebsd.mak 2011-06-24 17:04:54.369335124 -0700 +@@ -3,7 +3,7 @@ + TK=tk + ROOT=root + +-MODEL=-m32 ++MODEL= + + CC=c++ $(MODEL) + diff --git a/lang/dmd2/files/patch-src-druntime-posix.mak b/lang/dmd2/files/patch-src-druntime-posix.mak new file mode 100644 index 000000000000..9c2b61259160 --- /dev/null +++ b/lang/dmd2/files/patch-src-druntime-posix.mak @@ -0,0 +1,47 @@ +--- ../../src/druntime/posix.mak.orig 2011-05-07 13:02:24.000000000 -0700 ++++ ../../src/druntime/posix.mak 2011-06-24 17:11:12.557237355 -0700 +@@ -25,12 +25,10 @@ + DOCDIR=doc + IMPDIR=import + +-MODEL=32 ++DFLAGS=-O -release -inline -nofloat -w -d -Isrc -Iimport ++UDFLAGS=-O -release -nofloat -w -d -Isrc -Iimport + +-DFLAGS=-m$(MODEL) -O -release -inline -nofloat -w -d -Isrc -Iimport +-UDFLAGS=-m$(MODEL) -O -release -nofloat -w -d -Isrc -Iimport +- +-CFLAGS=-m$(MODEL) -O ++CFLAGS=-O + + OBJDIR=obj + DRUNTIME_BASE=druntime +@@ -487,23 +485,23 @@ + doc: $(DOCS) + + $(DOCDIR)/object.html : src/object_.d +- $(DMD) -m$(MODEL) -c -d -o- -Isrc -Iimport -Df$@ $(DOCFMT) $< ++ $(DMD) -c -d -o- -Isrc -Iimport -Df$@ $(DOCFMT) $< + + $(DOCDIR)/core_%.html : src/core/%.d +- $(DMD) -m$(MODEL) -c -d -o- -Isrc -Iimport -Df$@ $(DOCFMT) $< ++ $(DMD) -c -d -o- -Isrc -Iimport -Df$@ $(DOCFMT) $< + + $(DOCDIR)/core_sync_%.html : src/core/sync/%.d +- $(DMD) -m$(MODEL) -c -d -o- -Isrc -Iimport -Df$@ $(DOCFMT) $< ++ $(DMD) -c -d -o- -Isrc -Iimport -Df$@ $(DOCFMT) $< + + ######################## Header .di file generation ############################## + + import: $(IMPORTS) + + $(IMPDIR)/core/sys/windows/%.di : src/core/sys/windows/%.d +- $(DMD) -m32 -c -d -o- -Isrc -Iimport -Hf$@ $< ++ $(DMD) -c -d -o- -Isrc -Iimport -Hf$@ $< + + $(IMPDIR)/core/%.di : src/core/%.d +- $(DMD) -m$(MODEL) -c -d -o- -Isrc -Iimport -Hf$@ $< ++ $(DMD) -c -d -o- -Isrc -Iimport -Hf$@ $< + + ################### C/ASM Targets ############################ + |