Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 2019 07:33:24 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r502933 - head/games/stuntrally
Message-ID:  <201905290733.x4T7XOds018784@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Wed May 29 07:33:24 2019
New Revision: 502933
URL: https://svnweb.freebsd.org/changeset/ports/502933

Log:
  games/stuntrally: fix build with GCC-based architectures
  
  Add -Wno-narrowing to CXXFLAGS when using GCC to fix build error.
  
  PR:		237777
  Approved by:	tcberner (mentor), amdmi3 (maintainer timeout)
  Differential Revision:	https://reviews.freebsd.org/D20441

Modified:
  head/games/stuntrally/Makefile

Modified: head/games/stuntrally/Makefile
==============================================================================
--- head/games/stuntrally/Makefile	Wed May 29 07:29:28 2019	(r502932)
+++ head/games/stuntrally/Makefile	Wed May 29 07:33:24 2019	(r502933)
@@ -57,8 +57,14 @@ MASTER_SERVER_CMAKE_BOOL=	BUILD_MASTER_SERVER
 MASTER_SERVER_DESC=		Build the master server
 MASTER_SERVER_LIB_DEPENDS=	libenet.so:net/enet
 
+.include <bsd.port.pre.mk>
+
+.if ${CHOSEN_COMPILER_TYPE} == gcc
+CXXFLAGS+=	-Wno-narrowing
+.endif
+
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/Readme.txt ${STAGEDIR}${DOCSDIR}/
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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