From 0d1c46a5e509ab4189abdd9f0caf8c4e12d25ec5 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 10 Jul 2023 15:19:31 +0930 Subject: [PATCH] Makefile: rebuild ccan when ccan_compat.h changes. As it did recently: ``` /usr/bin/ld: bitcoin/pubkey.o: in function `pubkey_to_hash160': /home/rusty/devel/cvs/lightning/bitcoin/pubkey.c:101: undefined reference to `ccan_ripemd160' /usr/bin/ld: bitcoin/script.o: in function `hash160': /home/rusty/devel/cvs/lightning/bitcoin/script.c:22: undefined reference to `ccan_ripemd160' /usr/bin/ld: bitcoin/script.o: in function `bitcoin_wscript_htlc_offer': /home/rusty/devel/cvs/lightning/bitcoin/script.c:662: undefined reference to `ccan_ripemd160' /usr/bin/ld: bitcoin/script.o: in function `bitcoin_wscript_htlc_receive': /home/rusty/devel/cvs/lightning/bitcoin/script.c:780: undefined reference to `ccan_ripemd160' collect2: error: ld returned 1 exit status make: *** [Makefile:660: devtools/create-gossipstore] Error 1 ``` Signed-off-by: Rusty Russell --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 790c8352b..36ef99e3a 100644 --- a/Makefile +++ b/Makefile @@ -667,7 +667,7 @@ $(ALL_FUZZ_TARGETS): # Everything depends on the CCAN headers, and Makefile -$(CCAN_OBJS) $(CDUMP_OBJS): $(CCAN_HEADERS) Makefile +$(CCAN_OBJS) $(CDUMP_OBJS): $(CCAN_HEADERS) Makefile ccan_compat.h # Except for CCAN, we treat everything else as dependent on external/ bitcoin/ common/ wire/ and all generated headers, and Makefile $(ALL_OBJS): $(BITCOIN_HEADERS) $(COMMON_HEADERS) $(CCAN_HEADERS) $(WIRE_HEADERS) $(ALL_GEN_HEADERS) $(EXTERNAL_HEADERS) Makefile