mirror of
https://git.vladimir.cc/vladimir/wdsp.git
synced 2026-08-25 17:27:33 +00:00
Fix parallel build race: DLL link must wait for fftw-float install
With -jN, the DLL link step could start before fftw-float finished installing libfftw3f.dll.a, since $(DLL) only had an implicit ordering through .o compilation (which needs FFTW_LIB_D but not FFTW_LIB_F). Add both FFTW_LIB_D and FFTW_LIB_F as explicit prerequisites of $(DLL). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -246,7 +246,7 @@ $(OBJDIR)/specbleach/%.o: $(SPECBLEACH_DIR)/%.c | $(FFTW_LIB_D)
|
|||||||
$(OUTDIR) $(OBJDIR):
|
$(OUTDIR) $(OBJDIR):
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|
||||||
$(DLL): $(OBJS) $(NR34_DEPS) | $(OUTDIR)
|
$(DLL): $(OBJS) $(NR34_DEPS) $(FFTW_LIB_D) $(FFTW_LIB_F) | $(OUTDIR)
|
||||||
@echo ">>> Линкуем $@..."
|
@echo ">>> Линкуем $@..."
|
||||||
$(CC) -shared \
|
$(CC) -shared \
|
||||||
-Wl,--out-implib,$(IMPLIB) \
|
-Wl,--out-implib,$(IMPLIB) \
|
||||||
|
|||||||
Reference in New Issue
Block a user