diff options
| author | Zheng Junjie <873216071@qq.com> | 2024-12-24 01:14:10 +0800 |
|---|---|---|
| committer | Zheng Junjie <zhengjunjie@iscas.ac.cn> | 2025-01-25 01:05:27 +0800 |
| commit | 8f219ec01a7f9c118d039a77dc1119e6c27ebf5a (patch) | |
| tree | 759da8615736c7c73a56f449c4d62bcc1bc77ec2 /gnu | |
| parent | b3c0f209012f6aadde4393d9fbe2776d0c77ad1f (diff) | |
gnu: elfutils: Fix build to loongarch64.
* gnu/packages/elf.scm (elfutils)[native-inputs]: When target is loongarch64,
add config.
[arguments]: When target is loongarch64, Add update-config-scripts phase.
Change-Id: I0a0b4faa8594ecca2344eb4b15392e4355e79e45
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/elf.scm | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/gnu/packages/elf.scm b/gnu/packages/elf.scm index a32339b600d..74bc62a3004 100644 --- a/gnu/packages/elf.scm +++ b/gnu/packages/elf.scm | |||
| @@ -120,6 +120,17 @@ | |||
| 120 | (("run-strip-strmerge.sh") "") | 120 | (("run-strip-strmerge.sh") "") |
| 121 | (("run-elflint-self.sh") ""))))) | 121 | (("run-elflint-self.sh") ""))))) |
| 122 | #~()) | 122 | #~()) |
| 123 | #$@(if (target-loongarch64?) | ||
| 124 | `((add-after 'unpack 'update-config-scripts | ||
| 125 | (lambda* (#:key inputs native-inputs #:allow-other-keys) | ||
| 126 | ;; Replace outdated config.guess and config.sub. | ||
| 127 | (for-each (lambda (file) | ||
| 128 | (install-file | ||
| 129 | (search-input-file | ||
| 130 | (or native-inputs inputs) | ||
| 131 | (string-append "/bin/" file)) "./config")) | ||
| 132 | '("config.guess" "config.sub"))))) | ||
| 133 | '()) | ||
| 123 | #$@(if (system-hurd?) | 134 | #$@(if (system-hurd?) |
| 124 | #~((add-after 'unpack 'skip-tests | 135 | #~((add-after 'unpack 'skip-tests |
| 125 | (lambda _ | 136 | (lambda _ |
| @@ -151,8 +162,10 @@ | |||
| 151 | (search-patch | 162 | (search-patch |
| 152 | "elfutils-libdwfl-string-overflow.patch")))))) | 163 | "elfutils-libdwfl-string-overflow.patch")))))) |
| 153 | #~())))) | 164 | #~())))) |
| 154 | 165 | (native-inputs (append (if (target-loongarch64?) | |
| 155 | (native-inputs (list m4)) | 166 | (list config) |
| 167 | (list)) | ||
| 168 | (list m4))) | ||
| 156 | (inputs (list xz zlib)) | 169 | (inputs (list xz zlib)) |
| 157 | (home-page "https://sourceware.org/elfutils/") | 170 | (home-page "https://sourceware.org/elfutils/") |
| 158 | (synopsis "Collection of utilities and libraries to handle ELF files and | 171 | (synopsis "Collection of utilities and libraries to handle ELF files and |
