[72166] trunk/dports/cross/sh-rtems-gcc/Portfile
jmr at macports.org
jmr at macports.org
Tue Oct 5 14:16:50 PDT 2010
Revision: 72166
http://trac.macports.org/changeset/72166
Author: jmr at macports.org
Date: 2010-10-05 14:16:47 -0700 (Tue, 05 Oct 2010)
Log Message:
-----------
sh-rtems-gcc: clear archflags (#26733), set build/host type
Modified Paths:
--------------
trunk/dports/cross/sh-rtems-gcc/Portfile
Modified: trunk/dports/cross/sh-rtems-gcc/Portfile
===================================================================
--- trunk/dports/cross/sh-rtems-gcc/Portfile 2010-10-05 20:46:47 UTC (rev 72165)
+++ trunk/dports/cross/sh-rtems-gcc/Portfile 2010-10-05 21:16:47 UTC (rev 72166)
@@ -90,6 +90,11 @@
configure.dir ${workpath}/build
configure.cmd ${workpath}/gcc-${version}/configure
configure.env ${environment}
+# the generated compiler doesn't accept -arch
+configure.cc_archflags
+configure.cxx_archflags
+configure.objc_archflags
+configure.ld_archflags
configure.args --infodir='${prefix}/share/info' \
--mandir='${prefix}/share/man' \
--target=${crossgcc-target} \
@@ -100,6 +105,10 @@
--with-newlib \
--with-gxx-include-dir=${prefix}/${crossgcc-target}/include/c++/${version}/ \
${default-languages}
+if {${os.platform} == "darwin" && ($build_arch == "x86_64" || $build_arch == "ppc64")} {
+ configure.args-append --build=${build_arch}-apple-darwin${os.version} \
+ --host=${build_arch}-apple-darwin${os.version}
+}
build.dir ${workpath}/build
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101005/1b9230f5/attachment-0001.html>
More information about the macports-changes
mailing list