With xcode 15 it became possible to use mergeable libraries. To do this, use the MERGED_BINARY_TYPE parameter in the build settings.

Please advise, is it possible to get a mergeable library by passing flags to the linker/compiler when building a dynamic library? Because we don't use xcode in this process

Thank you and my question is what is 'appropriate flags'

See the Mergeable Library Options section within the ld man page.

Or, alternatively, create a test project in Xcode, built it, and then look at the build log to see how Xcode is doing things.

Share and Enjoy

Quinn “The Eskimo!” @ DTS @ Apple

1 Like