-
Notifications
You must be signed in to change notification settings - Fork 77
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
fix static linking for tests and extras, remove unneeded -static flag #98
Conversation
Do I understand correctly that the added code just removes "-static" option from compiler options when compiling extras and tests? CC @LoganDark just in case -- he is more familliar with C/C++ :) |
Yes, at least on macosx you dont need "-static" flag to build binaries, it event worse. It break your build. https://leanprover-community.github.io/archive/stream/113488-general/topic/libgmp.20dependency.html |
Co-authored-by: Alex <saharNooby@users.noreply.github.com>
Yeah no, this is a grave misunderstanding of the screenshotted article. You only can't statically link |
Thats true @LoganDark, but on mac build process crash if you try to build statically tests and extras... tests and extras binaries will be successful statically build with librwkv.a even without "-static" flag. Here is the way to reproduce: mkdir build && cd build
cmake -DRWKV_BUILD_SHARED_LIBRARY=OFF -DRWKV_STATIC=ON ..
cmake --build . --config Release Output:
|
does removing |
Yes, here is build without -static flag in tests and extras:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, doesn't look like these need to be statically linked on any platform
Done |
Hi,
on macosx you cant staticaly link with "-static" flag for binaries. So it should be removed.
Please review my pool request for this :D