From 30f483b2822bdbbb7a46c493563eb4cd40ed9d63 Mon Sep 17 00:00:00 2001 From: Martin Tzvetanov Grigorov Date: Fri, 10 Jan 2025 12:47:14 +0200 Subject: [PATCH] Try with temporary symlinks for gcc and g++ that are foundable in PATH Signed-off-by: Martin Tzvetanov Grigorov --- recipes/mrtrix3/build.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/recipes/mrtrix3/build.sh b/recipes/mrtrix3/build.sh index 5d27e8a596c994..8ae018b93acb75 100644 --- a/recipes/mrtrix3/build.sh +++ b/recipes/mrtrix3/build.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -set -xe +set -x export CFLAGS="${CFLAGS} -idirafter ${PREFIX}/include" export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib" @@ -9,9 +9,15 @@ export EIGEN_CFLAGS="-idirafter ${PREFIX}/include/eigen3" mkdir -p "${PREFIX}"/{bin,lib,share} -CC=${CC} CXX=${CXX} CFLAGS=${CXXFLAGS} ./configure -conda +ln -s ${CC} ${CONDA_PREFIX}/bin/gcc +ln -s ${CXX} ${CONDA_PREFIX}/bin/g++ + +./configure -conda ./build cp -r bin lib share "${PREFIX}" +unlink ${CONDA_PREFIX}/bin/g++ +unlink ${CONDA_PREFIX}/bin/gcc + # debug ls -la bin/ \ No newline at end of file