diff options
author | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2017-08-05 10:56:37 +0000 |
---|---|---|
committer | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2017-08-05 10:56:37 +0000 |
commit | 91a21178ab8929337edad4dbcae600ab02d29828 (patch) | |
tree | 2a6f4477c2cd459e47b43585b1bbb9393444cf20 | |
parent | Explicitly build with -std=gnu++03. (diff) |
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)
Notes
Notes:
svn path=/head/; revision=447398
-rw-r--r-- | net/mediatomb/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/mediatomb/Makefile b/net/mediatomb/Makefile index e36facd7431b..dba5761caff3 100644 --- a/net/mediatomb/Makefile +++ b/net/mediatomb/Makefile @@ -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} |