mention the configure script and how to link to a local libtls

This commit is contained in:
Omar Polo 2021-01-21 13:12:35 +00:00
parent 597ddf6ca8
commit 8f0da58068
1 changed files with 20 additions and 0 deletions

View File

@ -40,6 +40,9 @@ The build is as simple as
make
If the configure scripts fails to pick up something, please open an
isuse or notify me via email.
To install execute:
make install
@ -60,6 +63,23 @@ and then run it with something along the lines of
ellipses used for brevity.
#### Local libretls
This is **NOT** recommended, please try to port LibreSSL/LibreTLS to
your distribution of choice or use docker instead.
However, it's possible to link `gmid` to locally-installed libtls
quite easily. (It's how I test gmid on Fedora, for instance)
Let's say you have compiled and installed libressl in `$LIBRESSL`,
then you can build `gmid` with
./configure CFLAGS="-I$LIBRESSL/include" \
LDFLAGS="$LIBRESSL/lib/libtls.a -lssl -lcrypto"
make
(Fedora requires also `-lpthread` for some reason)
## Architecture/Security considerations