You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I specified the -- static option when configuring, but the compiled SRS program is still dynamically linked. There is no such problem in version 3.0, but upgrading to version 4.0 will cause this issue, which has been bothering me for a long time. I hope the experts can give me some advice!
change to: SrsLinkOptions="${SrsLinkOptions} -static";
But I don't think the fully static linked executable is a good idea. -static-libstdc++ will use static linked libstdc++ to replace the libstdc++.so, -static-libgcc will remove libgcc_s.so,
With those 2 link options will make your executable portable enough.
I closed pull request #4152 because the current side effects of using -static are unclear. Despite statically linking glibc, some functions are still dynamically linked, which could potentially cause other issues.
If you are willing to take the risk, you can modify the code yourself by replacing -static-libstdc++ with -static in the configure script.
I specified the -- static option when configuring, but the compiled SRS program is still dynamically linked. There is no such problem in version 3.0, but upgrading to version 4.0 will cause this issue, which has been bothering me for a long time. I hope the experts can give me some advice!
=======================================================================================
我在configure时指定了--static选项,但是编译得到的srs程序仍然是dynamically linked,在3.0版本没有这个问题,但是升级4.0版本就会这样,困扰了很长时间,望大佬们赐教!
The text was updated successfully, but these errors were encountered: