svn commit: r498477 - head/security/yubico-piv-tool

Hajimu UMEMOTO ume at FreeBSD.org
Tue Apr 9 14:32:58 UTC 2019


Author: ume
Date: Tue Apr  9 14:32:57 2019
New Revision: 498477
URL: https://svnweb.freebsd.org/changeset/ports/498477

Log:
  fix build with GCC-based architectures
  
  PR:		237155
  Submitted by:	Piotr Kubaj <pkubaj [...] anongoth.pl>

Modified:
  head/security/yubico-piv-tool/Makefile

Modified: head/security/yubico-piv-tool/Makefile
==============================================================================
--- head/security/yubico-piv-tool/Makefile	Tue Apr  9 14:04:49 2019	(r498476)
+++ head/security/yubico-piv-tool/Makefile	Tue Apr  9 14:32:57 2019	(r498477)
@@ -37,4 +37,13 @@ PLIST_FILES=	bin/yubico-piv-tool \
 		libdata/pkgconfig/ykpiv.pc \
 		man/man1/yubico-piv-tool.1.gz
 
+post-patch:
+.if exists(/usr/lib/libstdc++.so)
+	@${REINPLACE_CMD} -e '/#pragma GCC diagnostic/d' \
+		${WRKSRC}/lib/ykpiv.c \
+		${WRKSRC}/lib/util.c \
+		${WRKSRC}/lib/internal.c \
+		${WRKSRC}/tool/yubico-piv-tool.c
+.endif
+
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list