Add elf alignment check for Android artifacts (#13818)

(cherry picked from commit 4f11feb708)
This commit is contained in:
Matthew Zavislak
2025-08-28 16:31:03 -07:00
committed by Sam Lantinga
parent b2689ff76a
commit 0204a69f6b
4 changed files with 141 additions and 23 deletions

View File

@@ -554,6 +554,10 @@ def spec_to_job(spec: JobSpec, key: str, trackmem_symbol_names: bool) -> JobDeta
"testmultiaudio-apk",
"testsprite-apk",
]
# -fPIC is required after updating NDK from 21 to 28
job.cflags.append("-fPIC")
job.cxxflags.append("-fPIC")
case SdlPlatform.Emscripten:
job.clang_tidy = False # clang-tidy does not understand -gsource-map
job.shared = False