Skip to content

make -fvisibility=hidden work with java 1.7#14673

Merged
opencv-pushbot merged 1 commit intoopencv:3.4from
janstarzy:hidden-vis-with-java7
Jun 13, 2019
Merged

make -fvisibility=hidden work with java 1.7#14673
opencv-pushbot merged 1 commit intoopencv:3.4from
janstarzy:hidden-vis-with-java7

Conversation

@janstarzy
Copy link
Copy Markdown
Contributor

JNI_EXPORT/JNI_IMPORT need to be defined differently for -fvisibility=hidden

In JDK1.8 this is already done, I copied the definition for JDK1.7

Copy link
Copy Markdown
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

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

Where did you get that jni.h file?

Even old Android NDKs without Java1.7 has properly defined JNIEXPORT.

@janstarzy janstarzy force-pushed the hidden-vis-with-java7 branch from 79f5026 to e9ed7eb Compare June 13, 2019 15:40
@opencv-pushbot opencv-pushbot merged commit e9ed7eb into opencv:3.4 Jun 13, 2019
@alalek alalek mentioned this pull request Jun 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants