Skip to content

Commit 3781879

Browse files
jfsmigfvennetier
authored andcommitted
README.md: Adapt to the new libdill dependency
1 parent c17268a commit 3781879

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

README.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,39 @@
22

33
Gridinit is a tool used to manage non-daemon processes.
44

5+
## Dependencies
6+
7+
* A toolchain made of [cmake](https://cmake.org),
8+
[make](https://www.gnu.org/software/make/),
9+
[pkg-config](https://www.freedesktop.org/wiki/Software/pkg-config/),
10+
[gcc](https://www.gnu.org/software/gcc/) or [clang](https://clang.llvm.org/)
11+
* The [GNome Library](https://developer.gnome.org/glib/stable/)
12+
* [Martin Sustrik's libdill](https://github.com/open-io/libdill)
13+
514
## Build
615

7-
```
16+
Building ``gridinit`` is configured by ``cmake``, done by ``make`` and requires
17+
that ``libdill`` is installed ans its installation paths are configured with
18+
``pkg-config``.
19+
20+
```shell script
821
cmake -D GRIDINIT_SOCK_PATH=/tmp/gridinit.sock .
922
make
1023
```
1124

12-
### Dependencies
25+
But ``libdill`` is rarely available in mainstream Linux distributions, so here
26+
are the build instructions to build it from the ``git submodule``:
1327

14-
* cmake, make, gcc
15-
* glib, glib-devel
16-
* libdill (currently embedded)
28+
```shell script
29+
git submodule update --init --recursive
30+
cd vendor/libdill
31+
./autogen.sh
32+
./configure --prefix=/usr --enable-shared --disable-static --enable-tls --enable-threads
33+
make
34+
sudo make install
35+
```
1736

18-
### Compile-time configuration
37+
## Compile-time Configuration
1938

2039
| Macro | Default | Description |
2140
| ----- | ------- | ----------- |

0 commit comments

Comments
 (0)