diff options
author | Zheng Junjie <[email protected]> | 2024-12-24 01:14:10 +0800 |
---|---|---|
committer | Zheng Junjie <[email protected]> | 2025-01-25 01:05:27 +0800 |
commit | 8f219ec01a7f9c118d039a77dc1119e6c27ebf5a (patch) | |
tree | 759da8615736c7c73a56f449c4d62bcc1bc77ec2 | |
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
-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 a32339b600..74bc62a300 100644 --- a/gnu/packages/elf.scm +++ b/gnu/packages/elf.scm @@ -120,6 +120,17 @@ (("run-strip-strmerge.sh") "") (("run-elflint-self.sh") ""))))) #~()) + #$@(if (target-loongarch64?) + `((add-after 'unpack 'update-config-scripts + (lambda* (#:key inputs native-inputs #:allow-other-keys) + ;; Replace outdated config.guess and config.sub. + (for-each (lambda (file) + (install-file + (search-input-file + (or native-inputs inputs) + (string-append "/bin/" file)) "./config")) + '("config.guess" "config.sub"))))) + '()) #$@(if (system-hurd?) #~((add-after 'unpack 'skip-tests (lambda _ @@ -151,8 +162,10 @@ (search-patch "elfutils-libdwfl-string-overflow.patch")))))) #~())))) - - (native-inputs (list m4)) + (native-inputs (append (if (target-loongarch64?) + (list config) + (list)) + (list m4))) (inputs (list xz zlib)) (home-page "https://sourceware.org/elfutils/") (synopsis "Collection of utilities and libraries to handle ELF files and |