LibTimeZone: Include generated files before checked-in files
This is a rickety solution to a problem when using LibTimeZone as a static archive, like we do for Android. When pulling symbols from an archive into a shared library, lld will pick the weak symbols for our timezone helpers and keep them. Even if there's a strong symbol in another object file in the same archive, it ignores them. However, if we make sure that the strong symbols for the generated files are first in the list, then we avoid the problem altogether by relying on linker specifics.
This commit is contained in:
parent
de1bcf3597
commit
78c2fad89c
Notes:
sideshowbarker
2024-07-17 03:14:39 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/78c2fad89c Pull-request: https://github.com/SerenityOS/serenity/pull/21100
1 changed files with 1 additions and 1 deletions
|
@ -1,8 +1,8 @@
|
|||
include(${SerenityOS_SOURCE_DIR}/Meta/CMake/time_zone_data.cmake)
|
||||
|
||||
set(SOURCES
|
||||
TimeZone.cpp
|
||||
${TIME_ZONE_DATA_SOURCES}
|
||||
TimeZone.cpp
|
||||
)
|
||||
set(GENERATED_SOURCES ${CURRENT_LIB_GENERATED})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue