Revision
124824
Author
takeshi@macports.org
Date
2014-08-28 06:47:24 -0700 (Thu, 28 Aug 2014)

Log Message

dmd: set MODEL_FLAG to avoid wrong architecture selection, closing #44800

Modified Paths

Diff

Modified: trunk/dports/lang/dmd/Portfile (124823 => 124824)


--- trunk/dports/lang/dmd/Portfile	2014-08-28 13:03:14 UTC (rev 124823)
+++ trunk/dports/lang/dmd/Portfile	2014-08-28 13:47:24 UTC (rev 124824)
@@ -27,6 +27,8 @@
 
 use_configure       no
 
+variant universal {}
+
 build.dir           ${worksrcpath}/src
 
 # Use CFLAGS in the posix.make; some source needs special flags.
@@ -34,10 +36,10 @@
 # extra flags cannot be added with +=.
 # Another solution would be the use of override directive in posix.mak.
 build.args          -f posix.mak \
-                    HOST_CC=${configure.cxx} \
-                    CC=\"${configure.cxx}\" \
-                    LDFLAGS=\"${configure.ldflags} -framework CoreServices\" \
-                    ENVP=\"MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target}\"
+                    HOST_CC="${configure.cxx}" \
+                    LDFLAGS="${configure.ldflags} -framework CoreServices" \
+                    MODEL_FLAG="[get_canonical_archflags]" \
+                    ENVP="MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target}"
 
 destroot {
 # man