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 true dynamic linking for Linux build #105

Closed
wants to merge 1 commit into from

Conversation

gibsson
Copy link
Contributor

@gibsson gibsson commented May 26, 2019

Currently the binary generated from a Linux build is dynamically linked
but we force the static version for libstdc++ and libgcc.

This seems to be needed for Windows which only supports static linking
apparently.

Let's use the standard dynamic libraries for Linux to ease the tool
integration into Buildroot build system [1].

[1] http://lists.busybox.net/pipermail/buildroot/2019-May/250858.html

Signed-off-by: Gary Bisson bisson.gary@gmail.com

Currently the binary generated from a Linux build is dynamically linked
but we force the static version for libstdc++ and libgcc.

This seems to be needed for Windows which only supports static linking
apparently.

Let's use the standard dynamic libraries for Linux to ease the tool
integration into Buildroot build system [1].

[1] http://lists.busybox.net/pipermail/buildroot/2019-May/250858.html

Signed-off-by: Gary Bisson <bisson.gary@gmail.com>
@nxpfrankli
Copy link
Contributor

Someone complained libstdc++ is not compatible with their system when use prebuild linux version uuu.
So we change to static link.

@gibsson
Copy link
Contributor Author

gibsson commented May 28, 2019

Then I suggest building 2 different flavors of the tool, one built statically, one built dynamically, insttead of having such an hybrid implementation, what do you think?

@nxpfrankli
Copy link
Contributor

I think it'd better use build option, like cmake STATIC, cmake dynamtic. Default we use dynamtic, CI use static to do release.

@gibsson
Copy link
Contributor Author

gibsson commented May 29, 2019

Ok I'll look into it and come back with a patch.

@gibsson gibsson closed this May 29, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants