We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2523

Summary: Export JNI functions when building with -fvisibility=hidden flag
Product: SDL Reporter: Dimitris Zenios <dimitris.zenios>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: gabomdq, hakuro
Version: HG 2.1   
Hardware: x86_64   
OS: Android (All)   
Attachments: patch

Description Dimitris Zenios 2014-05-05 20:44:00 UTC
Created attachment 1640 [details]
patch

When building for android using standalone NDK -fvisibility=hidden flag is used and JNI functions are not globally exported.The correct way to export a jni function is to use JNIEXPORT JNICALL
Comment 1 Gabriel Jacobo 2014-05-10 18:58:00 UTC
https://hg.libsdl.org/SDL/rev/27eedcca604d
Comment 2 Philipp Wiesemann 2016-07-19 20:09:01 UTC
*** Bug 3163 has been marked as a duplicate of this bug. ***