-
Notifications
You must be signed in to change notification settings - Fork 100
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
Static lib #49
Static lib #49
Conversation
This compiles with muslc now!!! (Thanks to wasmerio/wasmer#1173) Here is the linking info. Master:
After
Looking good |
However, running against go code shows one more problem: Seems I need to make sure all the libs we statically linked to are -fPIC compatible
|
To reproduce (on Linux):
You should see the above errors (which go away after repeating above steps with |
I added Errors seem (almost) all related to
|
Okay, so I realized I really do want
This may be a hint: onelson/jq-src@c37f1a9 but I give up. Happy for someone else to try. |
Why do you think that? Wouln't it be desired to have an .a instead of a .so, that is linked statically into the final binary? |
I guess I was trying for something easier. I am happy if you check out this branch and see if you can get any further with the compile errors (using google or your own code-fu). I think I left |
Replaced by #106 which shows how to compile a static *.a as well as a fully static go binary using the alpine docker images. ( |
- change tag name: muslc -> static - unify link_muslc.go and link_static.go -> link_static.go - update build files: Dockerfile, Makefile
Builds on #48
Closes #45
This builds out a static library