Skip to content

Commit ff181ce

Browse files
authored
fix: add /usr/local/lib64 to LD search path (#1888)
1 parent 75a492f commit ff181ce

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docker/build_scripts/install-runtime-packages.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,12 @@ if [ "${BASE_POLICY}" == "manylinux" ]; then
162162
# this is needed to ensure the new one will be found
163163
# as LD_LIBRARY_PATH does not seem enough.
164164
# c.f. https://github.com/pypa/manylinux/issues/1022
165+
# we also want to keep those standard build directories searched by ld
166+
# c.f. https://github.com/pypa/manylinux/issues/1886
165167
echo "/usr/local/lib" > /etc/ld.so.conf.d/00-manylinux.conf
168+
if [ -d "/usr/local/lib64" ]; then
169+
echo "/usr/local/lib64" >> /etc/ld.so.conf.d/00-manylinux.conf
170+
fi
166171
ldconfig
167172
else
168173
# set the default shell to bash

0 commit comments

Comments
 (0)