diff options
author | Sean Champ <lab+bsd@thinkum.space> | 2022-05-12 10:33:23 +0000 |
---|---|---|
committer | Ganael LAPLANCHE <martymac@FreeBSD.org> | 2022-05-12 10:33:23 +0000 |
commit | b5e26678495d795d8596874e19790076e09c1c91 (patch) | |
tree | e2bc6fa60f886736b52904d66cd9f1610328330d | |
parent | d883a12a558f917737524b39153fcde19bb37886 (diff) | |
download | ports-b5e26678495d795d8596874e19790076e09c1c91.tar.gz ports-b5e26678495d795d8596874e19790076e09c1c91.zip |
devel/tbb: Fix symlink creation during build
Temporary variable CC_BASENAME may not reflect actual COMPILER_TYPE on
environments that modify CC or COMPILER_TYPE through included files,
leading to creating a wrong symlink.
Evaluating CC in the post-extract target ensures it is up to date and
in line with COMPILER_TYPE.
PR: 263851
Reported by: Sean Champ <lab+bsd@thinkum.space>
MFH: 2022Q2
-rw-r--r-- | devel/tbb/Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/devel/tbb/Makefile b/devel/tbb/Makefile index 990317db3009..31403f36d786 100644 --- a/devel/tbb/Makefile +++ b/devel/tbb/Makefile @@ -37,14 +37,13 @@ DOCS_BUILD_DEPENDS= doxygen:devel/doxygen \ USE_LDCONFIG= yes ALL_TARGET= default -CC_BASENAME= ${CC:C,^.*/,,} - .include <bsd.port.pre.mk> post-extract: -.if ${CC_BASENAME} != ${COMPILER_TYPE} - @${LN} -sf FreeBSD.${COMPILER_TYPE}.inc ${WRKSRC}/build/FreeBSD.${CC_BASENAME}.inc -.endif + @if [ "${COMPILER_TYPE}" != "${CC:T}" ]; then \ + ${LN} -sf FreeBSD.${COMPILER_TYPE}.inc \ + ${WRKSRC}/build/FreeBSD.${CC:T}.inc; \ + fi @${CP} ${FILESDIR}/version_info_FreeBSD.sh ${WRKSRC}/build/ post-patch: |