File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -61,12 +61,18 @@ chmod 777 $(pwd)/tools
6161mkdir -p dist
6262DOCKER_ARGS=" -v $( pwd) /dist:/work/dist/ -v ${script_dir} /..:/ITKPythonPackage -v $( pwd) /tools:/tools"
6363DOCKER_ARGS+=" -e MANYLINUX_VERSION"
64+ DOCKER_ARGS+=" -e LD_LIBRARY_PATH"
6465# Mount any shared libraries
6566if [[ -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
6974fi
75+ export LD_LIBRARY_PATH=" ${DOCKER_LD_LIBRARY_PATH} "
7076
7177if [[ " ${TARGET_ARCH} " = " aarch64" ]]; then
7278 echo " Install aarch64 architecture emulation tools to perform build for ARM platform"
You can’t perform that action at this time.
0 commit comments