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 - Export JNI functions when building with -fvisibility=hidden flag
Summary: Export JNI functions when building with -fvisibility=hidden flag
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 2.1
Hardware: x86_64 Android (All)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
: 3163 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-05-05 20:44 UTC by Dimitris Zenios
Modified: 2016-07-19 20:09 UTC (History)
2 users (show)

See Also:


Attachments
patch (7.36 KB, patch)
2014-05-05 20:44 UTC, Dimitris Zenios
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. ***