Skip to content

Commit bf8099b

Browse files
committed
pixi: Setup LDFLAGS to avoid issue on OSX
1 parent a58fe53 commit bf8099b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/activation.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ unset DEBUG_CPPFLAGS
1010
unset DEBUG_CXXFLAGS
1111
unset LDFLAGS
1212

13+
# On OSX it's really important to setup these linker path or the linker
14+
# will use the system libc++ that can be incompatible with our dependencies
15+
export LDFLAGS="-Wl,-rpath,$CONDA_PREFIX/lib -L$CONDA_PREFIX/lib"
16+
1317
# Setup ccache
1418
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
1519

0 commit comments

Comments
 (0)