Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2018 16:14:39 +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: r486017 - head/multimedia/smpeg
Message-ID:  <201811271614.wARGEdmQ023114@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Tue Nov 27 16:14:38 2018
New Revision: 486017
URL: https://svnweb.freebsd.org/changeset/ports/486017

Log:
  Base gcc doesn't support -Wno-error-narrowing flag.  Add it only when
  the compiler used is Clang.
  
  PR:		233407
  Submitted by:	Piotr Kubaj
  Approved by:	portmgr (tier-2 blanket)

Modified:
  head/multimedia/smpeg/Makefile

Modified: head/multimedia/smpeg/Makefile
==============================================================================
--- head/multimedia/smpeg/Makefile	Tue Nov 27 16:10:16 2018	(r486016)
+++ head/multimedia/smpeg/Makefile	Tue Nov 27 16:14:38 2018	(r486017)
@@ -14,7 +14,7 @@ COMMENT=	Free MPEG1 video player library with sound su
 LICENSE=	LGPL20
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		gmake libtool:build
+USES=		compiler gmake libtool:build
 USE_SDL=	sdl
 USE_LDCONFIG=	yes
 
@@ -27,7 +27,8 @@ CONFIGURE_ENV=	GLBASE="${LOCALBASE}" \
 CONFIGURE_ARGS=	--disable-opengl-player \
 		--disable-gtk-player \
 		--enable-mmx
-CFLAGS+=	-Wno-error-narrowing
+CFLAGS+=	${CFLAGS_${CHOSEN_COMPILER_TYPE}}
+CFLAGS_clang=	-Wno-error-narrowing
 LDFLAGS_i386=	-Wl,-znotext
 MAKE_ARGS=	LIBTOOL=${LOCALBASE}/bin/libtool
 INSTALL_TARGET=	install-strip



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