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

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

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

Modified:
  head/devel/boost_build/Makefile

Modified: head/devel/boost_build/Makefile
==============================================================================
--- head/devel/boost_build/Makefile	Sat Jan 16 01:10:30 2021	(r561695)
+++ head/devel/boost_build/Makefile	Sat Jan 16 01:14:05 2021	(r561696)
@@ -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.10G1E68q015124>