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

Link to C++ library statically on some platforms #221

Merged
merged 1 commit into from
Oct 13, 2017

Conversation

0dvictor
Copy link
Contributor

@0dvictor 0dvictor commented Oct 3, 2017

JIT on a platform that use GNU toolchain now link to libstdc++ statically.

Signed-off-by: Victor Ding [email protected]

@0dvictor
Copy link
Contributor Author

0dvictor commented Oct 3, 2017

@mstoodle This is the best way I can think of to statically link to libstdc++. It can be further cleaned up if we decide to drop support for GCC below version 4.5.

@fjeremic
Copy link
Contributor

fjeremic commented Oct 3, 2017

@mgaudet @charliegracie FYI for CMake support.

@0dvictor 0dvictor force-pushed the StaticLink branch 2 times, most recently from 4f28c3f to a5c1d2f Compare October 10, 2017 18:22
@0dvictor 0dvictor force-pushed the StaticLink branch 2 times, most recently from 48bc2d6 to 5bf86d3 Compare October 12, 2017 18:17
@0dvictor 0dvictor changed the title Link to C++ library statically on X86 Linux Link to C++ library statically on some platforms Oct 12, 2017
@mstoodle
Copy link
Contributor

jenkins test sanity

JIT on a platform that use GNU toolchain now link to libstdc++ statically.

Signed-off-by: Victor Ding <[email protected]>
@mstoodle
Copy link
Contributor

jenkins test sanity

@mstoodle
Copy link
Contributor

Given the simplicity of this change, I'm going to merge it to avoid the libstdc++ dependency from the JIT, and because I believe this is consistent with what OpenJDK does. It does imply that the build environment should be as similar as possible to the runtime environment.

@mstoodle mstoodle merged commit ebdb2fe into eclipse-openj9:master Oct 13, 2017
@0dvictor 0dvictor deleted the StaticLink branch October 13, 2017 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants