summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/cross-binutils/Makefile14
-rw-r--r--devel/cross-gcc/Makefile6
2 files changed, 19 insertions, 1 deletions
diff --git a/devel/cross-binutils/Makefile b/devel/cross-binutils/Makefile
index f4df54df4d75..e91214cb850b 100644
--- a/devel/cross-binutils/Makefile
+++ b/devel/cross-binutils/Makefile
@@ -82,6 +82,18 @@ FIXREFS= ${SH} -c '${REINPLACE_CMD} -E \
-e "s,(@file)\{$$0\},\1\{${OURTARGET}-$$0\},g" \
-e "s,\($$0\),\(${OURTARGET}-$$0\),g" $$*' --
+.include <bsd.port.pre.mk>
+
+.if defined(TGTARCH)
+.if ${TGTARCH} == "sparc" && ${ARCH} == "amd64"
+BROKEN= Does not link
+.endif
+
+.if ${TGTARCH} == "m68k" && ${ARCH} == "amd64" && ${OSVERSION} < 600000
+BROKEN= Does not compile
+.endif
+.endif
+
post-patch:
#
# Patch and rename info files
@@ -122,4 +134,4 @@ post-install:
@${FIND} -ds ${PREFIX}/${OURTARGET} -type d | \
${SED} -e 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/cross-gcc/Makefile b/devel/cross-gcc/Makefile
index d3c9281c542e..b02d0846e236 100644
--- a/devel/cross-gcc/Makefile
+++ b/devel/cross-gcc/Makefile
@@ -134,6 +134,12 @@ OPTIONS= CXX "Enable C++ language support" on \
.include <bsd.port.pre.mk>
+.if defined(TGTARCH)
+.if ${TGTARCH} == "i386" && ${ARCH} == "amd64"
+BROKEN= Does not link
+.endif
+.endif
+
PKG_ARGS= -v -c -${COMMENT:Q} -d ${DESCR} -f ${TMPPLIST} -p ${PREFIX} -P "`cd ${PORTSDIR}/devel/cross-binutils && ${MAKE} ${DEPENDS_ARGS} -V PKGNAME`:devel/cross-binutils" ${EXTRA_PKG_ARGS} $${_LATE_PKG_ARGS} -m ${MTREE_FILE} -o ${PKGORIGIN}
.if !defined(WITHOUT_CXX)