Skip to content

Commit

Permalink
Try with temporary symlinks for gcc and g++ that are foundable in PATH
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
  • Loading branch information
martin-g committed Jan 10, 2025
1 parent 71f9116 commit 30f483b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions recipes/mrtrix3/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -xe
set -x

export CFLAGS="${CFLAGS} -idirafter ${PREFIX}/include"
export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib"
Expand All @@ -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/

0 comments on commit 30f483b

Please sign in to comment.