svn commit: r448224 - head/devel/pwlib

Raphael Kubo da Costa rakuco at FreeBSD.org
Fri Aug 18 12:34:08 UTC 2017


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


More information about the svn-ports-all mailing list