Skip to content

Commit 9ab3e5b

Browse files
committed
Ensure runtime linker can dynamically load boost
1 parent 4b05994 commit 9ab3e5b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/scripts/python_wheels/cibw_before_all.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ export BOOST_ROOT="${BOOST_PREFIX}"
4646
export BOOST_INCLUDEDIR="${BOOST_PREFIX}/include"
4747
export BOOST_LIBRARYDIR="${BOOST_PREFIX}/lib"
4848

49+
# Ensure runtime linker can find Boost libraries
50+
export LD_LIBRARY_PATH="${BOOST_LIBRARYDIR}:$LD_LIBRARY_PATH" # For Linux
51+
export DYLD_LIBRARY_PATH="${BOOST_LIBRARYDIR}:$DYLD_LIBRARY_PATH" # For macOS
52+
4953
$(which $PYTHON) -m pip install -r $PROJECT_DIR/python/dev_requirements.txt
5054

5155
# Remove build/cache files that were generated on host

0 commit comments

Comments
 (0)