Fix incremental static builds

$? refers to the object files that are newer, so the resulting file
would lack all the older object files.
This commit is contained in:
Eelco Dolstra 2022-06-22 17:53:29 +02:00
parent f6cf644e5f
commit 696121fe1d
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ define build-library
$(1)_PATH := $$(_d)/$$($(1)_NAME).a
$$($(1)_PATH): $$($(1)_OBJS) | $$(_d)/
+$$(trace-ld) $(LD) -Ur -o $$(_d)/$$($(1)_NAME).o $$?
+$$(trace-ld) $(LD) -Ur -o $$(_d)/$$($(1)_NAME).o $$^
$$(trace-ar) $(AR) crs $$@ $$(_d)/$$($(1)_NAME).o
$(1)_LDFLAGS_USE += $$($(1)_PATH) $$($(1)_LDFLAGS)