Give the glibc shader layer a minimum SDK so NDK 30 headers accept it

(cherry picked from commit 41843dedcb)
This commit is contained in:
maxjivi05 authored and The412Banner committed 2026-10-25 23:09:14 +00:00
1 parent 8c5042f035
commit b0b2daa993
1 file changed
+1 -1
+1 -1
View File
@@ -42,7 +42,7 @@ def build(output, archive, lock, ndk):
shutil.copyfile(patch, licenses / patch.name)
# Only Vulkan types and opaque libc pointers cross this glibc ABI boundary.
subprocess.run([str(compiler), '--target=aarch64-linux-gnu', '--sysroot=' + str(toolchain / 'sysroot'),
'-I' + str(toolchain / 'sysroot/usr/include/aarch64-linux-android'),
'-I' + str(toolchain / 'sysroot/usr/include/aarch64-linux-android'), '-D__ANDROID_MIN_SDK_VERSION__=26',
'-fuse-ld=lld', '-nostdlib', '-shared', '-fPIC', '-O2', '-fno-stack-protector',
'-Wl,-z,max-page-size=16384', '-Wall', '-Wextra', '-Werror',
str(here / 'shader_layer.c'), '-o', str(output / 'qualcomm-shaders.so')], check=True)