Date: Fri, 18 Aug 2017 12:34:07 +0000 (UTC) From: Raphael Kubo da Costa <rakuco@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r448224 - head/devel/pwlib Message-ID: <201708181234.v7ICY7s8018420@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rakuco Date: Fri Aug 18 12:34:07 2017 New Revision: 448224 URL: https://svnweb.freebsd.org/changeset/ports/448224 Log: Explicitly pass -std=gnu++03 to the compiler. This fixes the build with GCC 6, which defaults to -std=gnu++14. The port's code does not work with C++11 or later. Annoyingly, this port's build system mixes CFLAGS and CXXFLAGS, so we need to pass -std=gnu++03 via CFLAGS for things to work properly. PR: 219275 Modified: head/devel/pwlib/Makefile Modified: head/devel/pwlib/Makefile ============================================================================== --- head/devel/pwlib/Makefile Fri Aug 18 12:28:08 2017 (r448223) +++ head/devel/pwlib/Makefile Fri Aug 18 12:34:07 2017 (r448224) @@ -39,6 +39,11 @@ MAKE_ENV= STDCCFLAGS+="-I${LOCALBASE}" CPPFLAGS+= -O1 -I${WRKSRC}/include -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib +# The port does not build with C++11 or later (bug 219275), and it also uses +# CFLAGS instead of CXXFLAGS in parts of the build system, so we cannot just +# use USE_CXXSTD. +CFLAGS+= -std=gnu++03 + CONFIGURE_ENV+= ATOMICITY_H="<ext/atomicity.h>" SDL_USE= SDL=sdl
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708181234.v7ICY7s8018420>