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

Allow compiling library statically #33

Closed
BrainStone opened this issue Jun 7, 2019 · 5 comments
Closed

Allow compiling library statically #33

BrainStone opened this issue Jun 7, 2019 · 5 comments

Comments

@BrainStone
Copy link

Due to some restrictions and uncertainties on the target system, I'd like to be able to statically link this library into my program, so I can make sure it won't crash because the target system doesn't have the dynamic library files.

Alternatively a simple way (like a dpkg package) to distrubute the shared library files on the target system without having to compile them there would work for me too.

@BrainStone
Copy link
Author

BrainStone commented Jun 7, 2019

Seems like #31 goes in the same direction as my second suggestion/alternative.

@wak-google
Copy link
Contributor

Well you can already distribute the tooling separate from the library, using the provided configure flags to build the tooling on the host and then build the library for the target. It probably doesn't support building as a static library but we could implement that.

@BrainStone
Copy link
Author

That would be very nice. Statically linking against it makes my live a whole lot easier.
It would also be nice if it would work with pkg-config in the sense that I can pass the program the --static flag and it gives me the right flags to link it statically.

And I'm more interested in distributing the library (not publically).

And lastly, is there a way to talk to you/the dev team somewhere other than GitHub? I'd prefer not having to make an issue for every itty bitty thing I come across while using this.

@williamspatrick
Copy link
Member

I think this was previously implemented in the autotools set up but this issue was never closed.

I recently added meson build support and @wak-google made a change to ensure it builds a static library if desired (meson option -Ddefault_library=static).

@BrainStone - outside of GH issues, you can get real time communication on freenode IRC #openbmc for almost any repository under the openbmc github project.

@BrainStone
Copy link
Author

Thank you for the follow up!

I'll keep that in mind. I'll see if I'll revisit the project I use the library in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants