如何编译出一个静态链接的ELF?
#3288
-
我的xmake.lua如下,我希望能编译出一个静态链接的可执行文件,我尝试了一下指令,都没有产生预期效果:
希望有类似
另外,现在在google上搜索xmake相关内容都会被自动纠正为CMake,能否尝试对Xmake相关页面进行一下SEO优化? |
Beta Was this translation helpful? Give feedback.
Answered by
waruqi
Jan 14, 2023
Replies: 1 comment 4 replies
-
add_ldflags("-static", {force = true}) |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
syheliel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add_ldflags("-static", {force = true})