svn commit: r447398 - head/net/mediatomb

Raphael Kubo da Costa rakuco at FreeBSD.org
Sat Aug 5 10:56:38 UTC 2017


Author: rakuco
Date: Sat Aug  5 10:56:37 2017
New Revision: 447398
URL: https://svnweb.freebsd.org/changeset/ports/447398

Log:
  Explicitly build with -std=gnu++11.
  
  This is a workaround for FreeBSD 10, whose libc++ does not have an overload for
  C++14's `operator delete(void*, size_t)'.
  
  Since GCC 6 uses -std=gnu++14 by default, linking fails when a dependency (such
  as taglib) is built with clang and lacking the overload. FreeBSD >= 11 is fine.
  
  PR:		219489
  Approved by:	portmgr (blanket approval)

Modified:
  head/net/mediatomb/Makefile

Modified: head/net/mediatomb/Makefile
==============================================================================
--- head/net/mediatomb/Makefile	Sat Aug  5 10:36:04 2017	(r447397)
+++ head/net/mediatomb/Makefile	Sat Aug  5 10:56:37 2017	(r447398)
@@ -23,6 +23,12 @@ CONFIGURE_ENV=	PTHREAD_LIBS="-lpthread"
 USES=		compiler:gcc-c++11-lib iconv localbase:ldflags
 USE_RC_SUBR=	mediatomb
 
+# Workaround for FreeBSD 10, whose libc++ does not have an overload for C++14's
+# `operator delete(void*, size_t)'. Since GCC 6 uses -std=gnu++14 by default,
+# linking fails when a dependency (such as taglib) is built with clang and
+# lacking the overload. FreeBSD >= 11 is fine.
+USE_CXXSTD=	gnu++11
+
 USERS=		mediatomb
 GROUPS=		${USERS}
 


More information about the svn-ports-all mailing list