From owner-svn-ports-all@freebsd.org Fri Aug 18 12:34:08 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 61497DDE5E0; Fri, 18 Aug 2017 12:34:08 +0000 (UTC) (envelope-from rakuco@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2E97010D4; Fri, 18 Aug 2017 12:34:08 +0000 (UTC) (envelope-from rakuco@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v7ICY7Pm018421; Fri, 18 Aug 2017 12:34:07 GMT (envelope-from rakuco@FreeBSD.org) Received: (from rakuco@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v7ICY7s8018420; Fri, 18 Aug 2017 12:34:07 GMT (envelope-from rakuco@FreeBSD.org) Message-Id: <201708181234.v7ICY7s8018420@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rakuco set sender to rakuco@FreeBSD.org using -f From: Raphael Kubo da Costa Date: Fri, 18 Aug 2017 12:34:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r448224 - head/devel/pwlib X-SVN-Group: ports-head X-SVN-Commit-Author: rakuco X-SVN-Commit-Paths: head/devel/pwlib X-SVN-Commit-Revision: 448224 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Aug 2017 12:34:08 -0000 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="" SDL_USE= SDL=sdl