fix: reproducible build paths for native libs and strip unused brotli sos (#56)

This commit is contained in:
Aryan 2026-03-10 20:17:23 +05:30 committed by GitHub
parent 4a19bb2249
commit 7eb38bcafb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 0 deletions

View file

@ -5,6 +5,11 @@ cmake_minimum_required(VERSION 3.22.1)
# Declares the project name.
project("reader-native")
add_compile_options(
-ffile-prefix-map=${CMAKE_SOURCE_DIR}=.
-ffile-prefix-map=${CMAKE_BINARY_DIR}=.
)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z,max-page-size=16384")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,max-page-size=16384")