Skip to content

Build sfml-main with position-independent code#2397

Merged
ChrisThrasher merged 1 commit into
SFML:2.6.xfrom
ChrisThrasher:fPIC-sfml-main
Feb 8, 2023
Merged

Build sfml-main with position-independent code#2397
ChrisThrasher merged 1 commit into
SFML:2.6.xfrom
ChrisThrasher:fPIC-sfml-main

Conversation

@ChrisThrasher

@ChrisThrasher ChrisThrasher commented Feb 6, 2023

Copy link
Copy Markdown
Member

Description

Closes #2393

This fixes an Android build problem since linking a static library into a shared library is prone to cause issues with that static library not using position independent code but those who use the shared library require position independent code.

@Zombieschannel Zombieschannel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can confirm that this line fixed the issue. Android Studio does not throw out errors anymore.

Comment thread src/SFML/Main/CMakeLists.txt Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants