File tree 2 files changed +6
-10
lines changed
2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -12,17 +12,13 @@ For example:
12
12
13
13
make HOST=x86_64-w64-mingw32 -j4
14
14
15
- ** Bitcoin Core's ` configure ` script by default will ignore the depends output.** In
15
+ ** When configuring Bitcoin Core, CMake by default will ignore the depends output.** In
16
16
order for it to pick up libraries, tools, and settings from the depends build,
17
- you must set the ` CONFIG_SITE ` environment variable to point to a ` config.site ` settings file.
18
- Make sure that ` CONFIG_SITE ` is an absolute path.
19
- In the above example, a file named ` depends/x86_64-w64-mingw32/share/config.site ` will be
20
- created. To use it during compilation:
17
+ you must specify the toolchain file.
18
+ In the above example, a file named ` depends/x86_64-w64-mingw32/toolchain.cmake ` will be
19
+ created. To use it during configuring Bitcoin Core:
21
20
22
- CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure
23
-
24
- The default install prefix when using ` config.site ` is ` --prefix=depends/<host-platform-triplet> ` ,
25
- so depends build outputs will be installed in that location.
21
+ cmake -B build --toolchain depends/x86_64-w64-mingw32/toolchain.cmake
26
22
27
23
Common ` host-platform-triplet ` s for cross compilation are:
28
24
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ $(1)_autoconf += LDFLAGS="$$($(1)_ldflags)"
171
171
endif
172
172
173
173
# We hardcode the library install path to "lib" to match the PKG_CONFIG_PATH
174
- # setting in depends/config.site .in, which also hardcodes "lib".
174
+ # setting in depends/toolchain.cmake .in, which also hardcodes "lib".
175
175
# Without this setting, CMake by default would use the OS library
176
176
# directory, which might be "lib64" or something else, not "lib", on multiarch systems.
177
177
$(1 ) _cmake=env CC="$$($(1 ) _cc) " \
You can’t perform that action at this time.
0 commit comments