Skip to content

Commit f3967bc

Browse files
committed
build: fix build weirdness after 5437248.
bitcoin-config.h moved, but the old file is likely to still exist when reconfiguring or switching branches. This would've caused files to not rebuild correctly, and other strange problems. Make the path explicit so that the old one cannot be found. Core libs use config/bitcoin-config.h. Libs (like crypto) which don't want access to bitcoin's headers continue to use -Iconfig and #include bitcoin-config.h.
1 parent 6d87566 commit f3967bc

17 files changed

+17
-17
lines changed

src/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $(LIBLEVELDB) $(LIBMEMENV):
1818
endif
1919

2020
BITCOIN_CONFIG_INCLUDES=-I$(builddir)/config
21-
BITCOIN_INCLUDES=-I$(builddir) -I$(builddir)/obj $(BITCOIN_CONFIG_INCLUDES) $(BOOST_CPPFLAGS) $(LEVELDB_CPPFLAGS)
21+
BITCOIN_INCLUDES=-I$(builddir) -I$(builddir)/obj $(BOOST_CPPFLAGS) $(LEVELDB_CPPFLAGS)
2222

2323
noinst_LIBRARIES = \
2424
libbitcoin_server.a \

src/clientversion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define CLIENTVERSION_H
33

44
#if defined(HAVE_CONFIG_H)
5-
#include "bitcoin-config.h"
5+
#include "config/bitcoin-config.h"
66
#else
77
//
88
// client versioning and copyright year

src/compat/glibc_compat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

55
#if defined(HAVE_CONFIG_H)
6-
#include "bitcoin-config.h"
6+
#include "config/bitcoin-config.h"
77
#endif
88

99
#include <cstddef>

src/compat/glibc_sanity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

55
#if defined(HAVE_CONFIG_H)
6-
#include "bitcoin-config.h"
6+
#include "config/bitcoin-config.h"
77
#endif
88

99
#include <cstddef>

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

66
#if defined(HAVE_CONFIG_H)
7-
#include "bitcoin-config.h"
7+
#include "config/bitcoin-config.h"
88
#endif
99

1010
#include "init.h"

src/main.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#define BITCOIN_MAIN_H
88

99
#if defined(HAVE_CONFIG_H)
10-
#include "bitcoin-config.h"
10+
#include "config/bitcoin-config.h"
1111
#endif
1212

1313
#include "chainparams.h"

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

66
#if defined(HAVE_CONFIG_H)
7-
#include "bitcoin-config.h"
7+
#include "config/bitcoin-config.h"
88
#endif
99

1010
#include "net.h"

src/netbase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#define BITCOIN_NETBASE_H
77

88
#if defined(HAVE_CONFIG_H)
9-
#include "bitcoin-config.h"
9+
#include "config/bitcoin-config.h"
1010
#endif
1111

1212
#include "compat.h"

src/qt/addressbookpage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

55
#if defined(HAVE_CONFIG_H)
6-
#include "bitcoin-config.h"
6+
#include "config/bitcoin-config.h"
77
#endif
88

99
#include "addressbookpage.h"

src/qt/bitcoin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

55
#if defined(HAVE_CONFIG_H)
6-
#include "bitcoin-config.h"
6+
#include "config/bitcoin-config.h"
77
#endif
88

99
#include "bitcoingui.h"

0 commit comments

Comments
 (0)