aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-03-20 11:17:46 +0100
committerGitHub <noreply@github.com>2023-03-20 11:17:46 +0100
commit0d314bbfe87c2da0f2d09dfc636a7c2b8d00cc78 (patch)
treea7c1b8ad526b66635e250dd472aa85c964f57ccb
parentb5b6055bbf00fa809633e88dab1e8eaec3ae9f8d (diff)
parent220aa8e0ac9d17de2c9f356a68be43b673d851a1 (diff)
Merge pull request #8068 from DieracDelta/jr/compile_darwin
Fix build aarch64-darwin for static library
-rw-r--r--mk/libraries.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/libraries.mk b/mk/libraries.mk
index 02e4d47f9..1bc73d7f7 100644
--- a/mk/libraries.mk
+++ b/mk/libraries.mk
@@ -126,7 +126,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) $$(ifndef $(HOST_DARWIN),-U) -r -o $$(_d)/$$($(1)_NAME).o $$^
$$(trace-ar) $(AR) crs $$@ $$(_d)/$$($(1)_NAME).o
$(1)_LDFLAGS_USE += $$($(1)_PATH) $$($(1)_LDFLAGS) $$(foreach lib, $$($(1)_LIBS), $$($$(lib)_LDFLAGS_USE))