MFH: r498219

Adjust compiler flags on GCC-based architectures to fix:

  cc1plus: error: unrecognized command line option "-Wno-narrowing"

Approved by:	portmgr (tier-2 blanket)
This commit is contained in:
Mark Linimon 2019-04-07 00:54:35 +00:00
parent 5a6d37069e
commit ae0b3dffd0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2019Q2/; revision=498220

View File

@ -22,10 +22,17 @@ PLIST_FILES= bin/dump_xsettings \
man/man1/dump_xsettings.1.gz \
man/man1/xsettingsd.1.gz
.include <bsd.port.pre.mk>
.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64
pre-configure:
${REINPLACE_CMD} -e 's|-Wno-narrowing||' ${WRKSRC}/SConstruct
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dump_xsettings ${WRKSRC}/xsettingsd \
${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/dump_xsettings.1 ${WRKSRC}/xsettingsd.1 \
${STAGEDIR}${MAN1PREFIX}/man/man1
.include <bsd.port.mk>
.include <bsd.port.post.mk>