We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1a3637c + 035c8db commit 18941d4Copy full SHA for 18941d4
cmake/modules/AddSwift.cmake
@@ -428,6 +428,9 @@ function(_add_variant_link_flags)
428
list(APPEND result "-Wl,-Bsymbolic")
429
elseif("${LFLAGS_SDK}" STREQUAL "ANDROID")
430
list(APPEND link_libraries "dl" "log" "atomic" "icudataswift" "icui18nswift" "icuucswift")
431
+ # We provide our own C++ below, so we ask the linker not to do it. However,
432
+ # we need to add the math library, which is linked implicitly by libc++.
433
+ list(APPEND result "-nostdlib++" "-lm")
434
if("${LFLAGS_ARCH}" MATCHES armv7)
435
list(APPEND result "${SWIFT_ANDROID_NDK_PATH}/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/libc++_shared.so")
436
elseif("${LFLAGS_ARCH}" MATCHES aarch64)
0 commit comments