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:
parent
6e04ee1523
commit
91c2d55e03
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=498219
1 changed files with 8 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue