38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
+
-
+
+
|
## Linux
* Build the in-tree OpenSSL library:
<ul>
<li> Download the OpenSSL tarball to `$HOME/openssl` and unpack it
into `$HOME/openssl/openssl` (or similar)
<li> `cd` into the `$HOME/openssl/openssl` directory
<li> If using Alpine Linux: `sudo apk add build-base perl linux-headers`
<li> `./config no-ssl3 no-weak-ssl-ciphers no-shared no-threads --openssldir=/etc/ssl`
<li> `./config no-ssl3 no-weak-ssl-ciphers no-shared no-threads no-tls-deprecated-ec --openssldir=/etc/ssl`<br>
↑ The "no-tls-deprecated-ec" term works on OpenSSL 3.5.0 and later. Omit for earlier versions.
<li> `make -j8 CFLAGS=-Os`
</ul>
* `./configure --with-openssl=$HOME/openssl/openssl --disable-fusefs`
* If the Makefile contains a reference to `-lpthread`, remove it.
* `make clean && make -j8 CFLAGS=-Os fossil && strip fossil`
* `strip fossil`
* Verify dependencies using "`ldd ./fossil`"
|