add_links指定动态库或静态库 #3759
ChrisCatCP
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
走 add_requires ,默认 静态库,
这是 linker flags 不是 compiler flags ,不是用 cxflags 。。自己 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
你在什么场景下需要该功能?
系统包管理器安装的库一般都是静态库和动态库在一起的
add_links似乎还没法显式指定链接静态库还是动态库
描述可能的解决方案
add_links("ssl",{shared = true})
希望能像这样 指定一个或多个库链接方式为动态链接
cxflags为
-Wl,-Bdynamic -lssl
描述你认为的候选方案
No response
其他信息
No response
Beta Was this translation helpful? Give feedback.
All reactions