diff --git a/stdlib/public/runtime/CMakeLists.txt b/stdlib/public/runtime/CMakeLists.txt index 56ae09c90cb12..cb07ffeb96730 100644 --- a/stdlib/public/runtime/CMakeLists.txt +++ b/stdlib/public/runtime/CMakeLists.txt @@ -94,6 +94,10 @@ if(SWIFT_BUILD_STATIC_STDLIB AND "${sdk}" STREQUAL "LINUX") set_target_properties(swiftImageInspectionShared PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${SWIFTSTATICLIB_DIR}/${lowercase_sdk}") + swift_install_in_component(stdlib + TARGETS swiftImageInspectionShared + DESTINATION "lib/swift_static/${lowercase_sdk}") + # Generate the static-executable-args.lnk file used for ELF systems (eg linux) set(linkfile "${lowercase_sdk}/static-executable-args.lnk") add_custom_command_target(swift_static_binary_${sdk}_args diff --git a/utils/static-executable-args.lnk b/utils/static-executable-args.lnk index 0d34ebd0c60f0..f3da0ed6b0ed0 100644 --- a/utils/static-executable-args.lnk +++ b/utils/static-executable-args.lnk @@ -1,5 +1,6 @@ -static -lswiftCore +-lswiftImageInspectionShared -Xlinker --defsym=__import_pthread_self=pthread_self -Xlinker