]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/base-filesystem: add define for s390x
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 18 Nov 2021 18:10:18 +0000 (19:10 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 19 Nov 2021 14:30:08 +0000 (15:30 +0100)
This is based on the information in #14311 and
https://refspecs.linuxfoundation.org/LSB_3.2.0/LSB-Core-S390X/LSB-Core-S390X.pdf
and https://wiki.debian.org/Multiarch/Tuples.

Fixes #14311.

src/shared/base-filesystem.c

index d2254d784890090687db169ceceab79e13f76c84..e399b3a8dd35164861233ae15da9aa9fbc6076e4 100644 (file)
@@ -93,7 +93,11 @@ static const BaseFilesystem table[] = {
 #    error "Unknown RISC-V ABI"
 #  endif
 #elif defined(__s390__)
+        /* s390-linux-gnu */
 #elif defined(__s390x__)
+        { "lib64",    0, "usr/lib/s390x-linux-gnu\0"
+                         "usr/lib64",                  "ld-lsb-s390x.so.3" },
+#    define KNOW_LIB64_DIRS 1
 #elif defined(__sparc__)
 #endif
         /* gcc doesn't allow pragma to be used within constructs, hence log about this separately below */