summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2007-08-28 09:33:13 +0000
committerVolker Stolz <vs@FreeBSD.org>2007-08-28 09:33:13 +0000
commite72ecdc34d5a60671b9b22dd97e49ae814ea5b11 (patch)
tree1894e69d194902465bf85d1906272af984da017a
parent- When helper programs does not appear at compile time, the generated (diff)
Unbreak on -CURRENT by falling back to gcc3.4
PRs: ports/114427, ports/115694 (Scot Hetzel and cokane@)
Notes
Notes: svn path=/head/; revision=198424
-rw-r--r--devel/gccxml/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/devel/gccxml/Makefile b/devel/gccxml/Makefile
index 074d90df8c74..cee0444736c8 100644
--- a/devel/gccxml/Makefile
+++ b/devel/gccxml/Makefile
@@ -31,6 +31,7 @@ do-configure:
${REINPLACE_CMD} -e "s,x86_64,amd64," \
${WRKSRC}/../gccxml-0.6.0/GCC/gcc/config.gcc
cd ${WRKSRC} && \
+ ${SETENV} ${CONFIGURE_ENV} \
${LOCALBASE}/bin/cmake ../${DISTNAME} -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} \
-DGCCXML_MAN_DIR:PATH="/man"
@@ -39,7 +40,16 @@ do-configure:
.if ${ARCH} == "alpha"
BROKEN= Build fails on alpha
.elif ${OSVERSION} >= 700000
-BROKEN= Does not compile
+# GCC-XML has some constructs that GCC 4.2 does not like. Namely,
+# the use of casted-pointer-dereferences as an lvalue to post-increment
+# operations.
+USE_GCC= 3.4
+CONFIGURE_ENV+= CC=${LOCALBASE}/bin/gcc34 \
+ CPP="${CC} -E" \
+ CXX=${LOCALBASE}/bin/g++34
+MAKE_ENV+= CC=${LOCALBASE}/bin/gcc34 \
+ CPP="${CC} -E" \
+ CXX=${LOCALBASE}/bin/g++34
.endif
.include <bsd.port.post.mk>