2020-04-26 11:52:25 +02:00
|
|
|
diff --git a/swift/utils/build-script-impl b/swift/utils/build-script-impl
|
|
|
|
index b1d060328bc..218c9215260 100755
|
|
|
|
--- a/swift/utils/build-script-impl
|
|
|
|
+++ b/swift/utils/build-script-impl
|
|
|
|
@@ -1782,6 +1782,13 @@
|
|
|
|
-DSWIFT_ANDROID_DEPLOY_DEVICE_PATH:STRING="${ANDROID_DEPLOY_DEVICE_PATH}"
|
|
|
|
-DSWIFT_SDK_ANDROID_ARCHITECTURES:STRING="${ANDROID_ARCH}"
|
|
|
|
)
|
|
|
|
+ if [[ "${host}" == "${LOCAL_HOST}" ]] ; then
|
|
|
|
+ cmake_options=(
|
|
|
|
+ "${cmake_options[@]}"
|
|
|
|
+ -DCMAKE_FIND_ROOT_PATH=@TERMUX_PREFIX@
|
|
|
|
+ -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER
|
|
|
|
+ )
|
|
|
|
+ fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ "${DARWIN_OVERLAY_TARGET}" != "" ]]; then
|
2020-02-17 18:24:10 +01:00
|
|
|
diff --git a/swift/utils/gen-static-stdlib-link-args b/swift/utils/gen-static-stdlib-link-args
|
|
|
|
index 0fa009d67d3..abd98c2493f 100755
|
|
|
|
--- a/swift/utils/gen-static-stdlib-link-args
|
|
|
|
+++ b/swift/utils/gen-static-stdlib-link-args
|
2020-04-30 13:56:12 +02:00
|
|
|
@@ -60,9 +60,8 @@ function write_linkfile {
|
2020-02-17 18:24:10 +01:00
|
|
|
fi
|
|
|
|
cat >$OUTPUTFILE <<EOF
|
|
|
|
-ldl
|
|
|
|
--lpthread
|
|
|
|
-lswiftCore
|
|
|
|
--lswiftImageInspectionShared
|
|
|
|
+-llog
|
|
|
|
$ICU_LIBS
|
|
|
|
-lstdc++
|
|
|
|
-lm
|