Remove -Wno-unused-command-line-argument from CFLAGS to fix the build

on GCC-based systems:

  cc1: error: unrecognized command line option "-Wno-unused-command-line-argument"

Approved by:	portmgr (tier-2 blanket)
This commit is contained in:
Mark Linimon 2019-06-13 13:03:11 +00:00
parent 8dc71da9ab
commit e9ff559e0d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=504092

View File

@ -23,8 +23,8 @@ LIB_DEPENDS= liblmdb.so:databases/lmdb \
libyajl.so:devel/yajl
RUN_DEPENDS= sie-nmsg>0:net/sie-nmsg
USES= autoreconf gmake libedit libtool pathfix pkgconfig shebangfix \
ssl
USES= autoreconf compiler gmake libedit libtool pathfix \
pkgconfig shebangfix ssl
GNU_CONFIGURE= yes
CONFIGURE_SHELL= ${LOCALBASE}/bin/bash
@ -53,7 +53,12 @@ CONFIGURE_ENV+= libcrypto_CFLAGS="-I${OPENSSLINC}" \
post-extract:
(${ECHO} "For libmy/b64_encode.c:" ; \
${SED} -ne "1,/\*\//p" ${WRKSRC}/libmy/b64_encode.c ) > ${LICENSE_FILE_PD}
${SED} -ne "1,/\*\//p" ${WRKSRC}/libmy/b64_encode.c ) > ${LICENSE_FILE_PD}
.if ${CHOSEN_COMPILER_TYPE} == gcc
pre-configure:
${REINPLACE_CMD} -e 's|-Wno-unused-command-line-argument||' ${WRKSRC}/configure.ac
.endif
post-install-DOXYGEN-on:
(cd ${WRKSRC} && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})