diff options
author | Zheng Junjie <[email protected]> | 2024-12-24 01:13:09 +0800 |
---|---|---|
committer | Zheng Junjie <[email protected]> | 2025-01-25 01:05:26 +0800 |
commit | 104904196c835e97e01afbb5714bb54b970c7314 (patch) | |
tree | 52e036da3488dd9ea8e6e07921d90bfce652bae9 | |
parent | 3228924c7bdebbaf6eed176d29c4b96a26dad2ef (diff) |
gnu: libatomic-ops: Fix build to loongarch64.
* gnu/packages/bdw-gc.scm (libatomic-ops)[native-inputs]: When target is
loongarch64, Add config.
[arguments]: When target is loongarch64, Add update-config-scripts phase.
Change-Id: I7a56860910e38985573482d4a4cfa622d8158f7c
-rw-r--r-- | gnu/packages/bdw-gc.scm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gnu/packages/bdw-gc.scm b/gnu/packages/bdw-gc.scm index 8eed98d1fd..71103d1c77 100644 --- a/gnu/packages/bdw-gc.scm +++ b/gnu/packages/bdw-gc.scm @@ -29,6 +29,7 @@ #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages autotools) #:use-module (gnu packages hurd)) (define-public libgc @@ -155,6 +156,22 @@ C or C++ programs, though that is not its primary goal.") "0glzah695wsf6c27hs5wwlw4mnq1vfivdshz1rb8pq7w4mp5dazh")))) (build-system gnu-build-system) (outputs '("out" "debug")) + (native-inputs (if (target-loongarch64?) + (list config) + '())) + (arguments (if (target-loongarch64?) + (list #:phases + #~(modify-phases %standard-phases + (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.guess" "config.sub")))))) + '())) (synopsis "Accessing hardware atomic memory update operations") (description "This C library provides semi-portable access to hardware-provided atomic |