]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - scripts/Kbuild.include
kbuild: Fix build with binutils <= 2.19
[mirror_ubuntu-artful-kernel.git] / scripts / Kbuild.include
index ed2773edfe71bae99adc0a7b64a454912dfd4477..fae2d8d8cb09db6026fe01f98752de524b962aac 100644 (file)
@@ -141,6 +141,11 @@ cc-ldoption = $(call try-run,\
 ld-option = $(call try-run,\
        $(CC) /dev/null -c -o "$$TMPO" ; $(LD) $(1) "$$TMPO" -o "$$TMP",$(1),$(2))
 
+# ar-option
+# Usage: KBUILD_ARFLAGS := $(call ar-option,D)
+# Important: no spaces around options
+ar-option = $(call try-run, $(AR) rc$(1) "$$TMP",$(1),$(2))
+
 ######
 
 ###