-
-
Notifications
You must be signed in to change notification settings - Fork 329
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
Make build #45
base: master
Are you sure you want to change the base?
Make build #45
Conversation
A simple build & install task, to create a shared library.
I cannot merge it right now, because |
Do you have any error messages for Mac OS? Perhaps you can change LIB_DIR=/lib to /usr/lib? This is speculation, I do not have a Mac. |
|
To be honest: what's the point of creating an archive for single object file? |
7heo commented
I personally do never link against |
Ahhh... you want to install it and link it using |
@mbelicki The use case I would have in mind would be to use the parson repository as a git submodule in your project, and then build the .a in parson from your project's |
Then |
That's a religious opinion. To each their own. Both solutions work, and yours is causing slightly less overhead. Mine is more flexible, as you can install the library on your system as the result of |
It's not a religious opinion. It's a fact. Feeding linker a path to another object just appends an object to collection of objects that linker has to link. The operation you propose involves understanding of three linker flags, which (1) tell it to prefer static linking, (2) add new search directory, (3) search among all potential library location to find one of possible names derived from This complexity obviously brings the flexibility that you mention. |
We're not discussing the same thing. I think it's safe to stop the noise here. |
A simple build & install task, to create a shared library, so it's not necessary to always include the Parson source, and possible to link against it.
make build sudo make install make clean
and then...
gcc my_source.c -l parson