如何动态给某些静态库添加连接命令? #2922
Replies: 1 comment
-
暂时不支持 #1452 你只能禁用 link 继承,add_deps("a", {inherit = false}) 然后 add_linkdirs add_ldflags 自己加 |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
某些特定库需要添加whole-archive 既 -Wl,--whole-archive liba.a -Wl,-no-whole-archive
xmake中
target("a")
set_kind("static")
set_targetdir("$(buildir)/lib")
add_includedirs("inc",{public = true})
add_files("src/*.c",{public = true})
target_end()
target("app.elf")
set_kind("binary")
add_deps(a)
使用add_deps(a)后如何添加呢?
Beta Was this translation helpful? Give feedback.
All reactions