libsystemd

The systemd System and Service Manager.

Latest version: 258.2

Add to xmake.lua

add_requires("libsystemd 258.2")

Learn how to add and link packages with Xmake →

Information

Recipe updated
2025-11-29T03:38:56.000Z

Platforms

  • linux: i386, x86_64, armv7, armv7s, arm64, mips, mips64, mipsel, mips64el, loong64, riscv64, s390x, ppc, ppc64, ppc64el, sparc64

Options

acl
Enable libacl support. · Type: boolean · Default: true
audit
Enable libaudit support. · Type: boolean · Default: true
blkid
Enable libblkid support. · Type: boolean · Default: true
gcrypt
Enable gcrypt support. · Type: boolean · Default: true
kmod
Enable support for loadable modules. · Type: boolean · Default: true
libmount
Enable lib support · Type: boolean · Default: true
lz4
Enable lz4 compression support. · Type: boolean · Default: true
openssl
Enable openssl support. · Type: string · Default: openssl3 · Values: false, openssl, openssl3
p11kit
Enable p11kit support. · Type: boolean · Default: true
pam
Enable PAM support. · Type: boolean · Default: true
seccomp
Enable SECCOMP support. · Type: boolean · Default: true
selinux
Enable SELinux support. · Type: boolean · Default: true
udev
Build libudev. · Type: boolean · Default: true
xz
Enable xz compression support. · Type: boolean · Default: true
zstd
Enable zstd compression support. · Type: boolean · Default: true

Versions

  • v258
  • v258.1
  • v258.2

Dependencies

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "libsystemd 258.2"

show info

xrepo info "libsystemd"

Link a library to your target

Declare the requirement, then attach the library to the target that uses it.

xmake.lua

add_requires("libsystemd 258.2")

target("demo")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("libsystemd")

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "libsystemd 258.2" shell