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

The "--static=on" option is unable to achieve static compilation. #4193

Open
jevian-ma opened this issue Oct 4, 2024 · 0 comments
Open

The "--static=on" option is unable to achieve static compilation. #4193

jevian-ma opened this issue Oct 4, 2024 · 0 comments
Labels
TransByAI Translated by AI/GPT.

Comments

@jevian-ma
Copy link

jevian-ma commented Oct 4, 2024

After testing, it has been found that in the latest release of SRS 5.0, using the command './configure --static=on' does not result in a static compilation. Upon examining the configure script, it was discovered that adding './configure --static=on' only includes the '-static-libstdc++' flag during the linking process, rather than '-static'. Additionally, it was noted that the compilation of SRS 5.0 involves the use of other libraries. A feasible method to achieve true static compilation has been identified as
./configure --srt=off --extra-ldflags=-static --sanitizer=off
The options '--srt=off' and '--sanitizer=off' are necessary for successful compilation. Without '--srt=off', the compilation will not complete, and omitting '--sanitizer=off' will result in a conflict with the static compilation option.

TRANS_BY_GPT4

@winlinvip winlinvip changed the title --static=on无法实现静态编译 The "--static=on" option is unable to achieve static compilation. Oct 4, 2024
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

2 participants