aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-07-18 10:24:55 -0400
committerJack Lloyd <[email protected]>2019-07-18 10:24:55 -0400
commitaa314cddff4d8875542de036739f9916720e5e9e (patch)
treeaf3f7931d581ee62d25545d421f6f26ddf7de7d8
parent24aa9dedeb0b1ea131dc2ebb951ec823ce457430 (diff)
Improve cross compile instructions.
GH #2039
-rw-r--r--doc/building.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/building.rst b/doc/building.rst
index c9c782528..cfaf89f4b 100644
--- a/doc/building.rst
+++ b/doc/building.rst
@@ -98,13 +98,18 @@ x86-64) but creating a binary for some other type (say MinGW x86-32). This is
completely supported by the build system. To extend the example, we must tell
`configure.py` to use the MinGW tools::
- $ ./configure.py --os=mingw --cpu=x86_32 --cc-bin=i686-w64-mingw32-g++ --ar=i686-w64-mingw32-ar
+ $ ./configure.py --os=mingw --cpu=x86_32 --cc-bin=i686-w64-mingw32-g++ --ar-command=i686-w64-mingw32-ar
...
$ make
...
$ file botan.exe
botan.exe: PE32 executable (console) Intel 80386, for MS Windows
+.. note::
+ For whatever reason, some distributions of MinGW lack support for
+ threading or mutexes in the C++ standard library. You can work around
+ this by disabling thread support using ``--without-os-feature=threads``
+
You can also specify the alternate tools by setting the `CXX` and `AR`
environment variables (instead of the `--cc-bin` and `--ar-command` options), as
is commonly done with autoconf builds.