Support --disable-shared flag.

This tells Nix to not build the shared libraries.
This commit is contained in:
Matthew Bauer 2019-02-13 00:03:10 -05:00
parent 7a7ec22298
commit 7ce1fae59f
3 changed files with 13 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-ar) ar crs $$@ $$?
$(trace-ar) $(AR) crs $$@ $$?
$(1)_LDFLAGS_USE += $$($(1)_PATH) $$($(1)_LDFLAGS)