]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools-Conf:Remove short dash in ar flag for LLVM
authorShi, Steven <steven.shi@intel.com>
Wed, 3 Aug 2016 09:43:03 +0000 (17:43 +0800)
committerLiming Gao <liming.gao@intel.com>
Wed, 10 Aug 2016 04:56:27 +0000 (12:56 +0800)
Both binutils ar and LLVM ar support "cr", but LLVM ar doens't
support add "-" in the flags, and llvm-ar cannot accept "-cr".
So remove the short dash "-" to make llvm archives work.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Steven Shi <steven.shi@intel.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
BaseTools/Conf/build_rule.template [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index a3388a7..6191957
         "$(SLINK)" $(SLINK_FLAGS) /OUT:${dst} @$(OBJECT_FILES_LIST)\r
 \r
     <Command.GCC, Command.GCCLD>\r
-        "$(SLINK)" -cr ${dst} $(SLINK_FLAGS) @$(OBJECT_FILES_LIST)\r
+        "$(SLINK)" cr ${dst} $(SLINK_FLAGS) @$(OBJECT_FILES_LIST)\r
     \r
     <Command.RVCT>\r
         "$(SLINK)" $(SLINK_FLAGS) ${dst} --via $(OBJECT_FILES_LIST)\r