From 1d9fe9022406f59e825e6d97b8d42708ef9f57c0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 11 Dec 2023 18:49:29 +0100 Subject: [PATCH] Add section about building release Mac libraries This doesn't seem to be documented anywhere else, but is rather important to know. --- docs/osx/install.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/osx/install.md b/docs/osx/install.md index f8a9788cfe..10143a2dc1 100644 --- a/docs/osx/install.md +++ b/docs/osx/install.md @@ -48,6 +48,24 @@ If you'd like to, you can also build all the other samples and demos Advanced topics {#osx_advanced} =============== +Building library for distribution +--------------------------------- + +When building library for the distribution with your application, you shouldn't +use `--enable-debug` option above but you may want to use `--disable-sys-libs` +option to ensure that it has no dependencies on the other libraries available +on the current system as they might not be present on all systems where the +application is used. + +It is also often desirable to build the final version of the application as +"universal binary", i.e. a combination of binaries for several different +architectures. In this case, you should build wxWidgets as universal binary +too, using `--enable-universal_binary` option. By default, this option enables +building for the usually wanted set of architectures (currently ARM and Intel) +but you may override this by listing the architectures you want to use +explicitly, separating them with commas. + + Installing library {#osx_install} ------------------