-
-
Notifications
You must be signed in to change notification settings - Fork 816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
启用soname时程序无法正确加载动态库 #4776
Comments
Title: The program cannot load the dynamic library correctly when soname is enabled. Xmake versionv2.8.7+HEAD.da27927 Operating system version and architectureUbuntu 22.04, Windows 11 WSL2 Describe the problemTest case shared_library_with_soname compiles normally When executing, it prompts In Expected resultsThe program can be executed normally. Project configurationAdditional information and error logsNone |
再试试, |
Try again, |
已修复。辛苦。 |
It has been fixed. Hard. |
Xmake 版本
v2.8.7+HEAD.da27927
操作系统版本和架构
Ubuntu 22.04, Windows 11 WSL2
描述问题
测试用例 shared_library_with_soname 编译正常
执行时提示
error while loading shared libraries: @rpath/libfoo.so.1: cannot open shared object file: No such file or directory
在
linker.soname
中target:add("shflags", "-Wl,-soname,@rpath/" .. soname, {force = true})
是否应删除@rpath
前缀?期待的结果
程序能够正常执行。
工程配置
shared_library_with_soname
附加信息和错误日志
无
The text was updated successfully, but these errors were encountered: