Unbreak on -CURRENT by falling back to gcc3.4
PRs: ports/114427, ports/115694 (Scot Hetzel and cokane@)
This commit is contained in:
parent
804a6c180e
commit
e72ecdc34d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=198424
1 changed files with 11 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue