File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ if test "$PKG_CONFIG" = ""; then
19
19
AC_MSG_ERROR ( [ pkg-config not found] )
20
20
fi
21
21
22
+ # When compiling with depends, the `PKG_CONFIG_PATH` and `PKG_CONFIG_LIBDIR` variables,
23
+ # being set in a `config.site` file, are not exported to let the `--config-cache` option
24
+ # work properly.
25
+ if test -n "$PKG_CONFIG_PATH"; then
26
+ PKG_CONFIG="env PKG_CONFIG_PATH=$PKG_CONFIG_PATH $PKG_CONFIG"
27
+ fi
28
+ if test -n "$PKG_CONFIG_LIBDIR"; then
29
+ PKG_CONFIG="env PKG_CONFIG_LIBDIR=$PKG_CONFIG_LIBDIR $PKG_CONFIG"
30
+ fi
31
+
22
32
BITCOIN_DAEMON_NAME=bitcoind
23
33
BITCOIN_GUI_NAME=bitcoin-qt
24
34
BITCOIN_CLI_NAME=bitcoin-cli
Original file line number Diff line number Diff line change 84
84
85
85
PKG_CONFIG="$(which pkg-config) --static"
86
86
87
- # These two need to remain exported because pkg-config does not see them
88
- # otherwise. That means they must be unexported at the end of configure.ac to
89
- # avoid ruining the cache. Sigh.
90
- export PKG_CONFIG_PATH="${depends_prefix}/share/pkgconfig:${depends_prefix}/lib/pkgconfig"
87
+ PKG_CONFIG_PATH="${depends_prefix}/share/pkgconfig:${depends_prefix}/lib/pkgconfig"
91
88
if test -z "@allow_host_packages@"; then
92
- export PKG_CONFIG_LIBDIR="${depends_prefix}/lib/pkgconfig"
89
+ PKG_CONFIG_LIBDIR="${depends_prefix}/lib/pkgconfig"
93
90
fi
94
91
95
92
CPPFLAGS="-I${depends_prefix}/include/ ${CPPFLAGS}"
You can’t perform that action at this time.
0 commit comments