summaryrefslogtreecommitdiff
path: root/m4/guix.m4
diff options
context:
space:
mode:
authorAntero Mejr <antero@mailbox.org>2023-02-01 20:25:04 +0000
committerLudovic Courtès <ludo@gnu.org>2023-03-16 12:37:03 +0100
commit8e3dfb3d6dfc0f19bd9a9f9b163f0f3d7dccc865 (patch)
treec08fa97fb66818a96c03979a5db9df736b914185 /m4/guix.m4
parent5864fc33803762388264e461e002ff09e3b5e4e8 (diff)
build: Correct guix_system on musl libc distros.
* m4/guix.m4 (GUIX_SYSTEM_TYPE): Add linux-musl* case. This prevents the macro from mis-parsing the host OS, which causes breakage when building from source. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'm4/guix.m4')
-rw-r--r--m4/guix.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/m4/guix.m4 b/m4/guix.m4
index 700c0dfd4a..147fcc48f4 100644
--- a/m4/guix.m4
+++ b/m4/guix.m4
@@ -58,6 +58,8 @@ AC_DEFUN([GUIX_SYSTEM_TYPE], [
linux-gnu*)
# For backward compatibility, strip the `-gnu' part.
guix_system="$machine_name-linux";;
+ linux-musl*)
+ guix_system="$machine_name-linux";;
gnu*)
# Always use i586 for GNU/Hurd.
guix_system="i586-gnu";;