forked from Kistler-Group/sdbus-cpp
Improve docs on steps needed to build libsystemd
This commit is contained in:
committed by
GitHub
parent
2256adf707
commit
7c3f91310f
@ -65,9 +65,11 @@ Fortunately, libsystemd is rather self-contained and can be built and used indep
|
|||||||
$ git clone https://github.com/systemd/systemd
|
$ git clone https://github.com/systemd/systemd
|
||||||
$ cd systemd
|
$ cd systemd
|
||||||
$ git checkout v242 # or any other recent stable version
|
$ git checkout v242 # or any other recent stable version
|
||||||
$ meson build/ # solve systemd dependencies if any pop up, e.g. libmount-dev, libcap, librt...
|
$ mkdir build
|
||||||
$ ninja -C build version.h
|
$ cd build
|
||||||
$ ninja -C build libsystemd.so.0.26.0 # or another version number depending which systemd version you have
|
$ meson --buildtype=release .. # solve systemd dependencies if any pop up, e.g. libmount-dev, libcap, librt...
|
||||||
|
$ ninja version.h # building version.h target is only necessary in systemd version >= 241
|
||||||
|
$ ninja libsystemd.so.0.26.0 # or another version number depending which systemd version you have
|
||||||
# finally, manually install the library, header files and libsystemd.pc pkgconfig file
|
# finally, manually install the library, header files and libsystemd.pc pkgconfig file
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user