fix binutils (#1104)

pull/1107/head
Hoildkv 3 years ago committed by GitHub
parent ea0519ed92
commit 823bf75954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      packages/b/binutils/xmake.lua

@ -14,7 +14,7 @@ package("binutils")
add_extsources("pacman::binutils")
elseif is_plat("linux") then
add_extsources("pacman::binutils", "apt::binutils")
elseif is_plat("macosx")then
elseif is_plat("macosx") then
add_extsources("brew::binutils")
end
@ -35,7 +35,8 @@ package("binutils")
table.insert(configs, "--enable-plugins")
end
-- fix 'makeinfo' is missing on your system.
io.replace("binutils/Makefile.in", "SUBDIRS =.-po", "SUBDIRS = ")
io.replace("binutils/Makefile.in", "SUBDIRS =[^\n]-po", "SUBDIRS =")
io.replace("gas/Makefile.in", "INFO_DEPS =[^\n]-%.info", "INFO_DEPS =")
if package:version():le("2.34") then
-- fix multiple definition of `program_name'
io.replace("binutils/srconv.c", "char *program_name;", "extern char *program_name;", {plain = true})

Loading…
Cancel
Save