Skip to content

Commit 7046713

Browse files
author
Simon Rit
committed
BUG: add mounted library paths to docker LD_LIBRARY_PATH
1 parent 4a2188a commit 7046713

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/dockcross-manylinux-build-module-wheels.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,18 @@ chmod 777 $(pwd)/tools
6161
mkdir -p dist
6262
DOCKER_ARGS="-v $(pwd)/dist:/work/dist/ -v ${script_dir}/..:/ITKPythonPackage -v $(pwd)/tools:/tools"
6363
DOCKER_ARGS+=" -e MANYLINUX_VERSION"
64+
DOCKER_ARGS+=" -e LD_LIBRARY_PATH"
6465
# Mount any shared libraries
6566
if [[ -n ${LD_LIBRARY_PATH} ]]; then
6667
for libpath in ${LD_LIBRARY_PATH//:/ }; do
67-
DOCKER_ARGS+=" -v ${libpath}:/usr/lib64/$(basename -- ${libpath})"
68+
DOCKER_LIBRARY_PATH="/usr/lib64/$(basename -- ${libpath})"
69+
DOCKER_ARGS+=" -v ${libpath}:${DOCKER_LIBRARY_PATH}"
70+
if test -d ${libpath}; then
71+
DOCKER_LD_LIBRARY_PATH+="${DOCKER_LIBRARY_PATH}:${DOCKER_LD_LIBRARY_PATH}"
72+
fi
6873
done
6974
fi
75+
export LD_LIBRARY_PATH="${DOCKER_LD_LIBRARY_PATH}"
7076

7177
if [[ "${TARGET_ARCH}" = "aarch64" ]]; then
7278
echo "Install aarch64 architecture emulation tools to perform build for ARM platform"

0 commit comments

Comments
 (0)