blob: 211b3ebe20c1d97bb861236cd719ba9e0be6b12b [file] [log] [blame]
# On Ubuntu the link libdl.so is packaged separate from libdl-{ver}.so and libdl.so.2
# to avoid renode crashing we add local link on first activation.
# As we link to the link provided by libc package it should work after update
if [ `uname` = 'Linux' ] && ( ! [ -e "$CONDA_PREFIX/lib/libdl.so" ] ) && [ `whereis libdl | grep 'libdl\.so' | wc -l` -eq 0 ] ; then
# Return code is ignored as it doesn't tell whether link was created but may break 'conda install'
find / -name 'libdl.so.2' -exec ln -s {} "$CONDA_PREFIX/lib/libdl.so" \; -quit || true
fi