build-system/meson: Use 'target-arm32?' for armhf-linux case.
authorEfraim Flashner <efraim@flashner.co.il>
Mon, 19 Mar 2018 20:06:22 +0000 (22:06 +0200)
committerEfraim Flashner <efraim@flashner.co.il>
Thu, 22 Mar 2018 18:19:44 +0000 (20:19 +0200)
* guix/build-system/meson.scm (lower, meson-build): Replace armhf-linux
detection with 'target-arm32?' macro.

guix/build-system/meson.scm

index 529a2b8..88a7b58 100644 (file)
@@ -86,8 +86,7 @@
                          ;; to avoid superfluous entries in RUNPATH as described
                          ;; in <https://bugs.gnu.org/28444#46>, so armhf may now
                          ;; have different runtime dependencies from other arches.
-                         ,@(if (not (string-prefix? "arm" (or (%current-target-system)
-                                                              (%current-system))))
+                         ,@(if (not (target-arm32?))
                                `(("patchelf" ,(default-patchelf)))
                                '())
                          ,@native-inputs))
@@ -148,8 +147,7 @@ has a 'meson.build' file."
                     #:search-paths ',(map search-path-specification->sexp
                                           search-paths)
                     #:phases
-                    (if (string-prefix? "arm" ,(or (%current-target-system)
-                                                   (%current-system)))
+                    (if (target-arm32?)
                         (modify-phases build-phases (delete 'fix-runpath))
                         build-phases)
                     #:configure-flags ,configure-flags