Skip to content

[Android] portable linker rule to keep symbol ANativeActivity_onCreate#3697

Merged
eXpl0it3r merged 1 commit into
SFML:masterfrom
TheMaverickProgrammer:bugfix/android_felinux@mav
Apr 2, 2026
Merged

[Android] portable linker rule to keep symbol ANativeActivity_onCreate#3697
eXpl0it3r merged 1 commit into
SFML:masterfrom
TheMaverickProgrammer:bugfix/android_felinux@mav

Conversation

@TheMaverickProgrammer

@TheMaverickProgrammer TheMaverickProgrammer commented Apr 1, 2026

Copy link
Copy Markdown

Fixes

Without this, the ANativeActivity_onCreate was being stripped and the app would crash at launch.

After the fix, the sfml android app launches and runs as expected.

Description

Retains -u behavior by using recommended cmake "LINKER:<expr>" expression format while building for android with different toolchains where -u option may not be the same.

See: https://cmake.org/cmake/help/v3.13/command/target_link_options.html

My cmake: 4.1.2
OS: Bazzite (Fedora Linux) under ubuntu distrobox.
NDK: 27.0.12077973

Tasks

  • Tested on Android

@github-project-automation github-project-automation Bot moved this to Planned in SFML 3.1.0 Apr 2, 2026
@eXpl0it3r eXpl0it3r added this to the 3.1 milestone Apr 2, 2026
@eXpl0it3r eXpl0it3r moved this from Planned to In Review in SFML 3.1.0 Apr 2, 2026
@eXpl0it3r eXpl0it3r enabled auto-merge (rebase) April 2, 2026 15:09
@eXpl0it3r eXpl0it3r merged commit 765d790 into SFML:master Apr 2, 2026
104 checks passed
@github-project-automation github-project-automation Bot moved this from In Review to Done in SFML 3.1.0 Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants