aedi: enable position independent code for sdl2

This commit is contained in:
alexey.lysiuk 2021-09-12 10:56:41 +03:00
parent 9a2c979cd4
commit d6df02e52d

View file

@ -464,6 +464,8 @@ class Sdl2Target(CMakeStaticDependencyTarget):
LINKER_FLAGS = None LINKER_FLAGS = None
def configure(self, state: BuildState): def configure(self, state: BuildState):
state.options['SDL_STATIC_PIC'] = 'YES'
if not Sdl2Target.FRAMEWORKS: if not Sdl2Target.FRAMEWORKS:
# Need to have uniform settings for x86_64 and arm64 because of linking with Metal framework # Need to have uniform settings for x86_64 and arm64 because of linking with Metal framework
Sdl2Target.FRAMEWORKS = '-framework AudioToolbox -framework AVFoundation -framework Carbon' \ Sdl2Target.FRAMEWORKS = '-framework AudioToolbox -framework AVFoundation -framework Carbon' \