Skip to content

Commit

Permalink
Add workaround for OpenSSL in Cygwin
Browse files Browse the repository at this point in the history
Cygwin doesn't seem to support detached threads used by the threaded DNS
resolver at the same time the dynamic OpenSSL library is used. As a
workaround we suggest disabling the threaded DNS (will use the same
thread) if building with OpenSSL on Cygwin.

Fixes: #172
  • Loading branch information
rodarima committed May 20, 2024
1 parent ea22632 commit 4bf2924
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ at https://github.com/dillo-browser/dillo
dillo-3.1.1 [not released yet]

+- Disable TLSv1.3 in Mbed TLS 3.6.0 until it is supported.
- Add workaround for Cygwin and OpenSSL with --disable-threaded-dns.
Patches: Rodrigo Arias Mallo <[email protected]>

dillo-3.1.0 [May 4, 2024]
Expand Down
7 changes: 6 additions & 1 deletion doc/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,18 @@ $ ./configure LDFLAGS="-L`brew --prefix openssl`/lib" CPPFLAGS="-I`brew --prefix

Dillo can be built for Windows (tested on Windows 11) by using the
[Cygwin](https://www.cygwin.com/) POSIX portability layer and run with Xorg. You
will need the following dependencies to build Dillo (with mbedTLS):
will need the following dependencies to build Dillo with mbedTLS:

```
gcc-core gcc-g++ autoconf automake make zlib-devel mbedtls-devel libfltk-devel
libiconv-devel libpng-devel libjpeg-devel
```

**Note**: Dillo can also be built with OpenSSL (libssl-devel) but there is a
[known problem with detached threads](https://github.com/dillo-browser/dillo/issues/172)
used by the DNS resolver and OpenSSL that causes a crash. If you use OpenSSL,
disable the threaded resolver with `--disable-threaded-dns`.

You will also need [Xorg](https://x.cygwin.com/docs/ug/cygwin-x-ug.html) to run
Dillo graphically:

Expand Down

0 comments on commit 4bf2924

Please sign in to comment.