2020-11-06 17:02:29 +01:00
|
|
|
commit 75be121002348a7f0c3995f6a6ff63fcbe21aaed
|
|
|
|
Date: Tue Mar 31 01:14:18 2020 +0530
|
|
|
|
|
|
|
|
[PackageDescription] Add missing relative SDK rpath to libPackageDescription.so shared libraries (#2661)
|
|
|
|
|
2020-02-17 18:24:10 +01:00
|
|
|
diff --git a/swiftpm/Sources/PackageDescription/CMakeLists.txt b/swiftpm/Sources/PackageDescription/CMakeLists.txt
|
2020-11-06 17:02:29 +01:00
|
|
|
index ee9eda32..ea704129 100644
|
2020-02-17 18:24:10 +01:00
|
|
|
--- a/swiftpm/Sources/PackageDescription/CMakeLists.txt
|
|
|
|
+++ b/swiftpm/Sources/PackageDescription/CMakeLists.txt
|
2020-11-06 17:02:29 +01:00
|
|
|
@@ -47,6 +47,9 @@ foreach(PACKAGE_DESCRIPTION_VERSION 4 4_2)
|
|
|
|
Foundation)
|
2020-11-13 07:58:40 +01:00
|
|
|
target_link_options(PD${PACKAGE_DESCRIPTION_VERSION} PRIVATE
|
|
|
|
"SHELL:-no-toolchain-stdlib-rpath")
|
2020-11-06 17:02:29 +01:00
|
|
|
+ set_target_properties(PD${PACKAGE_DESCRIPTION_VERSION} PROPERTIES
|
|
|
|
+ BUILD_WITH_INSTALL_RPATH TRUE
|
|
|
|
+ INSTALL_RPATH "$ORIGIN/../../$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>")
|
2020-02-17 18:24:10 +01:00
|
|
|
endif()
|
2020-09-23 22:16:17 +02:00
|
|
|
|
2020-11-06 17:02:29 +01:00
|
|
|
if(CMAKE_HOST_SYSTEM_NAME STREQUAL Darwin)
|