Skip to content
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

macOS 连接阶段抛出 warning #134

Closed
matyhtf opened this issue May 9, 2023 · 2 comments
Closed

macOS 连接阶段抛出 warning #134

matyhtf opened this issue May 9, 2023 · 2 comments

Comments

@matyhtf
Copy link
Member

matyhtf commented May 9, 2023

clang: warning: argument unused during compilation: '-fno-ident' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-all-static' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-fno-ident' [-Wunused-command-line-argument]

这些参数是无效的

@jingjingxyk
Copy link
Contributor

jingjingxyk commented May 9, 2023

@matyhtf 不全是无效的,其实是有效的 https://github.com/swoole/swoole-cli/pull/122/files#diff-7ce9ccea805556fb53879edf934df0e24b92c2752fe0f749b02c1f6be1dd434f ,我做了测试。-all-static 放到 LDFLAGS 是有效的

应该是放错了位置

主要是: LDFLAGS EXTRA_LDFLAGS_PROGRAM 优先级问题;

不链接动态库,两种方式:

swoole/swoole-src#4172 (comment)

@jingjingxyk
Copy link
Contributor

macos clang 编译参数: -all-static 已屏蔽

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants