Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jan 2021 01:14:55 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r561697 - branches/2021Q1/devel/boost_build
Message-ID:  <202101160114.10G1EtMQ015281@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Sat Jan 16 01:14:54 2021
New Revision: 561697
URL: https://svnweb.freebsd.org/changeset/ports/561697

Log:
  MFH: r561696
  
  devel/boost_build: fix build on GCC architectures
  
  Toolset 'cxx' does not appear to support C++11.

Modified:
  branches/2021Q1/devel/boost_build/Makefile
Directory Properties:
  branches/2021Q1/   (props changed)

Modified: branches/2021Q1/devel/boost_build/Makefile
==============================================================================
--- branches/2021Q1/devel/boost_build/Makefile	Sat Jan 16 01:14:05 2021	(r561696)
+++ branches/2021Q1/devel/boost_build/Makefile	Sat Jan 16 01:14:54 2021	(r561697)
@@ -13,7 +13,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 RUN_DEPENDS=	${LOCALBASE}/bin/bjam:devel/boost-jam
 
-USES=		python:test shebangfix tar:bzip2
+USES=		compiler:c++11-lang python:test shebangfix tar:bzip2
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	boostorg
@@ -25,12 +25,12 @@ SHEBANG_GLOB=	*.py
 SUB_FILES=	pkg-message
 
 do-build:
-	@cd ${WRKSRC} && ./bootstrap.sh
+	@cd ${WRKSRC} && CXXFLAGS="${CXXFLAGS}" CXX="${CXX}" ./bootstrap.sh
 
 do-install:
-	cd ${WRKSRC} && ./b2 toolset=clang install --prefix=${STAGEDIR}${PREFIX}
+	cd ${WRKSRC} && ./b2 toolset=${CHOSEN_COMPILER_TYPE} install --prefix=${STAGEDIR}${PREFIX}
 
 do-test: # test target fails: https://github.com/boostorg/build/issues/698
-	cd ${WRKSRC} && ./b2 toolset=clang test --prefix=${STAGEDIR}${PREFIX}
+	cd ${WRKSRC} && ./b2 toolset=${CHOSEN_COMPILER_TYPE} test --prefix=${STAGEDIR}${PREFIX}
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101160114.10G1EtMQ015281>