Autolinking behavior of @_implementationOnly with static linking

Sorry, my sentence was misleading. I meant that I want to add LINK_LIBRARY entry in Foundation.swiftmodule for icui18n.

Even though we inject autolink_entries section in object file of Foundation, the section won't be read by swift-autolink-extract, so it doesn't work well on ELF and other platforms using swift_autolink mechanism, I think.

As far as I investigated, there is no way to add LINK_LIBRARY entry to swiftmodule explicitly, so I'm planning to add an option to do that. What do you think about this approach?

e.g. swiftc -emit-module -public-autolink-library icui18n

Thanks! $<TARGET_OBJECTS:CoreFoundation> is exactly what I needed. It works very well!