diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-06-22 17:53:29 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-06-22 17:53:58 +0200 |
commit | 696121fe1d110764bf4ca7f77c2ea57d0c1d3122 (patch) | |
tree | f5e67ddcffeead875ba19d392cae1c3848e08349 /mk | |
parent | f6cf644e5f7da4a0391b10fb31b4b4661c5439dc (diff) |
Fix incremental static builds
$? refers to the object files that are newer, so the resulting file
would lack all the older object files.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/libraries.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/libraries.mk b/mk/libraries.mk index 876148a55..6541775f3 100644 --- a/mk/libraries.mk +++ b/mk/libraries.mk @@ -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) |