mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-25 01:28:50 -05:00
295c8efa35
See `${ndk}/build/core/default-build-commands.mk` for link flags the NDK
uses for executables. Add them to our default executable link flags.
Suppress `nocopyreloc` on `arm64-v8a` because it does not work with
some STL types.
Closes: #16380
11 lines
290 B
CMake
11 lines
290 B
CMake
string(APPEND _ANDROID_ABI_INIT_CFLAGS
|
|
" -funwind-tables"
|
|
" -no-canonical-prefixes"
|
|
)
|
|
|
|
string(APPEND _ANDROID_ABI_INIT_EXE_LDFLAGS " -Wl,--gc-sections")
|
|
|
|
if(NOT _ANDROID_ABI_INIT_EXE_LDFLAGS_NO_nocopyreloc)
|
|
string(APPEND _ANDROID_ABI_INIT_EXE_LDFLAGS " -Wl,-z,nocopyreloc")
|
|
endif()
|