Skip to content

Commit 823bf75

Browse files
authored
fix binutils (#1104)
1 parent ea0519e commit 823bf75

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/b/binutils/xmake.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ package("binutils")
1414
add_extsources("pacman::binutils")
1515
elseif is_plat("linux") then
1616
add_extsources("pacman::binutils", "apt::binutils")
17-
elseif is_plat("macosx")then
17+
elseif is_plat("macosx") then
1818
add_extsources("brew::binutils")
1919
end
2020

@@ -35,7 +35,8 @@ package("binutils")
3535
table.insert(configs, "--enable-plugins")
3636
end
3737
-- fix 'makeinfo' is missing on your system.
38-
io.replace("binutils/Makefile.in", "SUBDIRS =.-po", "SUBDIRS = ")
38+
io.replace("binutils/Makefile.in", "SUBDIRS =[^\n]-po", "SUBDIRS =")
39+
io.replace("gas/Makefile.in", "INFO_DEPS =[^\n]-%.info", "INFO_DEPS =")
3940
if package:version():le("2.34") then
4041
-- fix multiple definition of `program_name'
4142
io.replace("binutils/srconv.c", "char *program_name;", "extern char *program_name;", {plain = true})

0 commit comments

Comments
 (0)