Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Dec 2018 03:33:23 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r488060 - head/www/libepc
Message-ID:  <201812220333.wBM3XNN1039760@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Sat Dec 22 03:33:22 2018
New Revision: 488060
URL: https://svnweb.freebsd.org/changeset/ports/488060

Log:
  #pragma GCC diagnostic needs to be removed to build on GCC-based
  architectures.
  
  PR:		234159
  Submitted by:	Piotr Kubaj
  Approved by:	portmgr (tier-2 blanket)

Modified:
  head/www/libepc/Makefile

Modified: head/www/libepc/Makefile
==============================================================================
--- head/www/libepc/Makefile	Sat Dec 22 03:29:34 2018	(r488059)
+++ head/www/libepc/Makefile	Sat Dec 22 03:33:22 2018	(r488060)
@@ -25,4 +25,10 @@ USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
 INSTALL_TARGET=	install-strip
 
+post-patch:
+.if exists(/usr/lib/libstdc++.so)
+	${REINPLACE_CMD} -e '/#pragma GCC diagnostic/d' \
+		${WRKSRC}/examples/simple-publisher.c
+.endif
+
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812220333.wBM3XNN1039760>