mirror of
https://github.com/apple/swift.git
synced 2025-12-25 12:15:36 +01:00
- Add ImageInspectionStatic.cpp to lookup protocol conformance and metadata sections in static binaries - For Linux, build libswiftImageInspectionShared.a and libswiftImageInspectionStatic.a for linking with libswiftCore.a. This allows static binaries to be built without linking to libdl. libswiftImageInspectionShared (ImageInspectionELF.cpp) is automatically compiled into libswiftCore.so - Adds -static-executable option to swiftc to use along with -emit-executable that uses linker arguments in static-executable-args.lnk. This also requires a libicu to be compiled using the --libicu which has configure options that dont require libdl for accessing ICU datafiles - Static binaries only work on Linux at this time
14 lines
258 B
Plaintext
14 lines
258 B
Plaintext
-static
|
|
-lswiftCore
|
|
-lswiftImageInspectionStatic
|
|
-Xlinker
|
|
--defsym=__import_pthread_self=pthread_self
|
|
-Xlinker
|
|
--defsym=__import_pthread_once=pthread_once
|
|
-Xlinker
|
|
--defsym=__import_pthread_key_create=pthread_key_create
|
|
-lpthread
|
|
-licui18n
|
|
-licuuc
|
|
-licudata
|