From 24739989dd17321322480c91b09128e15f673a9d Mon Sep 17 00:00:00 2001 From: pasta Date: Wed, 23 Sep 2026 00:49:03 -0500 Subject: [PATCH] build: finish relic_conf.h regeneration before compiling BLS consumers The first make in src/dashbls after configure reruns its config.status, because configure's trailing sed -i.old rewrites config.status after the header stamp is written. config.status then deletes relic_conf.h and moves a regenerated copy into place. Under parallel make, src objects that include dashbls headers are compiled at the same time and can fail with 'relic_conf.h' file not found. Add the header to BUILT_SOURCES with a FORCE rule that runs the dashbls sub-make for it, so all/check/install finish any regeneration before building src. Co-Authored-By: Claude Opus 5.5 (1M context) --- src/Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index 20df7196d91a..299d83be9180 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -31,6 +31,14 @@ check_PROGRAMS = TESTS = BENCHMARKS = +# The first make in dashbls after configure reruns its config.status, which +# replaces relic_conf.h. Let that finish before compiling anything that +# includes it. +BUILT_SOURCES = dashbls/depends/relic/include/relic_conf.h + +dashbls/depends/relic/include/relic_conf.h: FORCE + $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -C dashbls depends/relic/include/relic_conf.h + if ENABLE_STACKTRACES if ENABLE_CRASH_HOOKS if CRASH_HOOKS_WRAPPED_CXX_ABI