about summary refs log tree commit diff
path: root/mk
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-02-13T05·03-0500
committerMatthew Bauer <mjbauer95@gmail.com>2019-02-13T05·03-0500
commit7ce1fae59f6cb4341f61a48a5216cb252e4eca54 (patch)
tree949694cbe850b79001cba63612a63d2d2481dc1f /mk
parent7a7ec2229834aa294b3e09df7f514b7134287ec2 (diff)
Support --disable-shared flag.
This tells Nix to not build the shared libraries.
Diffstat (limited to 'mk')
-rw-r--r--mk/libraries.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/libraries.mk b/mk/libraries.mk
index 14c95fa91cf6..3953446cba32 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-ar) ar crs $$@ $$?
+	$(trace-ar) $(AR) crs $$@ $$?
 
     $(1)_LDFLAGS_USE += $$($(1)_PATH) $$($(1)_LDFLAGS)