fix binutils (#511)

* fix binutils

* fix binutils

* Update fedora.yml

* improve binutils
pull/518/head
ruki 3 years ago committed by GitHub
parent ff6c1278bf
commit c450ab9350
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .github/workflows/fedora.yml
  2. 8
      packages/b/binutils/xmake.lua

@ -35,6 +35,6 @@ jobs:
env:
XMAKE_ROOT: y
run: |
xmake l ./scripts/test.lua -D -k ${{ matrix.kind }}
xmake l ./scripts/test.lua -D -k ${{ matrix.kind }} -j1

@ -1,10 +1,10 @@
package("binutils")
set_kind("binary")
set_homepage("https://www.gnu.org/software/binutils/binutils.html")
set_description("GNU binary tools for native development")
set_license("GPL-2.0")
set_kind("binary")
set_urls("https://ftp.gnu.org/gnu/binutils/binutils-$(version).tar.xz",
"https://ftpmirror.gnu.org/binutils/binutils-$(version).tar.xz")
@ -26,6 +26,12 @@ package("binutils")
table.insert(configs, "--enable-gold")
table.insert(configs, "--enable-plugins")
end
-- fix 'makeinfo' is missing on your system.
io.replace("binutils/Makefile.in", "SUBDIRS = doc po", "SUBDIRS = ")
-- fix multiple definition of `program_name'
io.replace("binutils/srconv.c", "char *program_name;", "extern char *program_name;", {plain = true})
io.replace("binutils/sysdump.c", "char *program_name;", "extern char *program_name;", {plain = true})
io.replace("binutils/coffdump.c", "char * program_name;", "extern char *program_name;", {plain = true})
import("package.tools.autoconf").install(package, configs)
end)

Loading…
Cancel
Save