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

Enable AIX build with xlc 13.1 #15

Merged
merged 2 commits into from
Aug 28, 2018
Merged

Conversation

keithc-ca
Copy link
Member

Define JNIEXPORT and JNIIMPORT for xlc version 13.1 or newer. Without this, almost no symbols are exported from shared libraries due to use of -qvisibility=hidden as specified in make/lib/LibCommon.gmk. The symptoms are reported in eclipse-openj9/openj9#2468.

Unfortunately, this encounters a bug in xlc: it fails to parse what seems to be reasonable code. A workaround is required in just one place: src/java.base/share/native/libjimage/NativeImageBuffer.cpp.

Copy link
Contributor

@andrew-m-leonard andrew-m-leonard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable

@andrew-m-leonard andrew-m-leonard merged commit 37a385d into ibmruntimes:openj9 Aug 28, 2018
@keithc-ca keithc-ca deleted the aix branch August 28, 2018 11:44
keithc-ca pushed a commit to keithc-ca/openj9-openjdk11 that referenced this pull request Mar 24, 2021
Set correct file attributes on .so files in images dirs
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.

2 participants