swift: link the stdlib against libunwind
This commit is contained in:
parent
82a78ca781
commit
3ad1aa79bc
@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Swift is a high-performance system programming language"
|
||||
TERMUX_PKG_LICENSE="Apache-2.0, NCSA"
|
||||
TERMUX_PKG_MAINTAINER="@buttaface"
|
||||
TERMUX_PKG_VERSION=5.5.1
|
||||
TERMUX_PKG_REVISION=2
|
||||
TERMUX_PKG_REVISION=3
|
||||
SWIFT_RELEASE="RELEASE"
|
||||
TERMUX_PKG_SRCURL=https://github.com/apple/swift/archive/swift-$TERMUX_PKG_VERSION-$SWIFT_RELEASE.tar.gz
|
||||
TERMUX_PKG_SHA256=b4092b2584919f718a55ad0ed460fbc48e84ec979a9397ce0adce307aba41ac9
|
||||
|
@ -179,12 +179,13 @@ index 57288b33049..73ab70240e3 100644
|
||||
endif()
|
||||
elseif("${LFLAGS_SDK}" STREQUAL "FREEBSD")
|
||||
list(APPEND link_libraries "pthread")
|
||||
@@ -417,6 +414,10 @@ function(_add_target_variant_link_flags)
|
||||
@@ -417,6 +414,11 @@ function(_add_target_variant_link_flags)
|
||||
list(APPEND link_libraries "dl" "log")
|
||||
# We need to add the math library, which is linked implicitly by libc++
|
||||
list(APPEND result "-lm")
|
||||
+ if(NOT "${SWIFT_ANDROID_NDK_PATH}" STREQUAL "")
|
||||
+ list(APPEND result "-rtlib=compiler-rt")
|
||||
+ list(APPEND result "-l:libunwind.a")
|
||||
+ list(APPEND result "-resource-dir=${SWIFT_SDK_ANDROID_ARCH_${LFLAGS_ARCH}_PATH}/../lib64/clang/${SWIFT_ANDROID_NDK_CLANG_VERSION}")
|
||||
+ endif()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user