diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2019-10-07 16:43:04 +0100 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2019-10-07 17:24:39 +0100 |
commit | 17e0df3e79cdb5c68d29af5c742cd691f45a4781 (patch) | |
tree | ff8ec74c8fc84680377350f0a51196c7022b2d96 | |
parent | b86cd0ef3f225b0e68a7c49de2460829f6bfe2be (diff) | |
download | klibc-17e0df3e79cdb5c68d29af5c742cd691f45a4781.tar.gz |
[klibc] Kbuild: Work around broken "ar s" in binutils 2.32
"ar s" without a sub-command like "r" fails in binutils 2.32, at least
in the Debian package. Revert to running ranlib where we are only
updating the index and not members.
References: https://bugs.debian.org/941921
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | scripts/Kbuild.klibc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc index c32bc6323e29c..b7e99b567f6c5 100644 --- a/scripts/Kbuild.klibc +++ b/scripts/Kbuild.klibc @@ -100,7 +100,7 @@ KLIBCAR := $(AR) # The second will be used for reproducible builds, the first otherwise. klibc-ar = $(KLIBCAR) $(if $(KBUILD_REPRODUCIBLE),$(2),$(1)) -KLIBCRANLIB := $(call klibc-ar,s,Ds) +KLIBCRANLIB := $(RANLIB) $(if $(KBUILD_REPRODUCIBLE),-D) KLIBCSTRIP := $(if $(CONFIG_DEBUG_INFO),true,$(STRIP)) KLIBCNM := $(NM) KLIBCOBJCOPY := $(OBJCOPY) |