undefined

man 手册:https://man7.org/linux/man-pages/man8/ld.so.8.html

LD_PRELOAD 指定多个库文件

1
2
3
4
5
6
7
8
9
10
11
12
# 使用冒号在文件之间做分隔。man 手册提到也支持空格,但写到 shell 中会出错,不要使用
LD_PRELOAD=path1:path2
LD_PRELOAD="path1 path2" // 不建议使用

man 手册:
The items of the list can be separated by spaces or
colons, and there is no support for escaping either
separator. The objects are searched for using the rules
given under DESCRIPTION. Objects are searched for and
added to the link map in the left-to-right order specified
in the list.
不支持转义分隔符。以列表中指定的从左到右的顺序搜索对象并将其添加到链接映射中

LD_LIBRARY_PATH

1
2
3
支持冒号和分号做分隔。
LD_LIBRARY_PATH=path1:path2
LD_LIBRARY_PATH=path1;path2