upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorBitflash <btf01@proton.me>2026-08-01 21:27:09 -0300
committerGitHub <noreply@github.com>2026-08-01 21:27:09 -0300
commit09007b4a0321c594083fe1b5e67edbc8b257844b (patch)
tree35af23374952f6c5397fc548a11adb722f0147fb /src/Makefile
parent2ffc50998c30f285f45c5c5d81975bf857885aa8 (diff)
build: list every header, so editing one rebuilds what includes it (#99)
sockcount.h was in neither makefile's HEADERS, so editing it rebuilt only the objects whose .cpp had also changed and the rest kept the old struct layout -- one object indexing a shared function-local static by the old layout and another by the new one, in the same binary. compat.h and font_roboto.h were missing from one list each. Verified with a full clean rebuild: no duplicate-section warning.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 3eaf2ba..5ded7d6 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -39,10 +39,17 @@ LIBS = -L$(SECP_LIB) -lsecp256k1 \
39 -lsodium -lssl -lcrypto -ldb_cxx -lpthread \ 39 -lsodium -lssl -lcrypto -ldb_cxx -lpthread \
40 -lglfw -lGL 40 -lglfw -lGL
41 41
42# Every header a .cpp here includes has to be listed, not just the interesting
43# ones. sockcount.h was missing, and it declares a struct that lives in a
44# function-local static shared across translation units: editing it rebuilt
45# some objects and not others, and the linker said so in a warning easy to walk
46# past -- "duplicate section ... has different size". That is one object
47# indexing a struct by the old layout and another by the new one, in the same
48# binary. Nothing crashed here, and nothing would say so if it had.
42HEADERS = headers_core.h headers.h util.h main.h serialize.h uint256.h \ 49HEADERS = headers_core.h headers.h util.h main.h serialize.h uint256.h \
43 key.h bignum.h script.h db.h base58.h net.h nostr.h \ 50 key.h bignum.h script.h db.h base58.h net.h nostr.h \
44 randomx_pow.h btfaddr.h btfchan.h btfrv.h btftunnel.h market.h \ 51 randomx_pow.h btfaddr.h btfchan.h btfrv.h btftunnel.h market.h \
45 selftest.h walletcmd.h compat.h 52 selftest.h walletcmd.h compat.h sockcount.h font_roboto.h
46 53
47IMGUI_OBJS = obj/imgui.o obj/imgui_draw.o obj/imgui_tables.o \ 54IMGUI_OBJS = obj/imgui.o obj/imgui_draw.o obj/imgui_tables.o \
48 obj/imgui_widgets.o obj/imgui_impl_glfw.o obj/imgui_impl_opengl3.o 55 obj/imgui_widgets.o obj/imgui_impl_glfw.o obj/imgui_impl_opengl3.o