Skip to content

Commit

Permalink
Clarify README instructions
Browse files Browse the repository at this point in the history
- Set `TH_WITH_SSL` to 1 (instead of just defining it).
- Include `gperf` as required tool for amalgamation.
  • Loading branch information
RaphiaRa committed Sep 26, 2024
1 parent 481e3c3 commit f129c3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ but I'll be adding more features and fixing bugs if I have the time.
## Dependencies
- OpenSSL (optional, for HTTPS support)
- gperf (optinal, for binary builds)
- gperf (optinal, for binary builds and amalgamation)
- python3 (optional, for running the amalgamation script)
- picohttpparser (included) - a small, fast HTTP parser
- The C standard library
Expand All @@ -54,9 +54,9 @@ but I'll be adding more features and fixing bugs if I have the time.
## Enabling HTTPS
To enable HTTPS support, you need to link against OpenSSL and define `TH_WITH_SSL` when compiling the library.
To enable HTTPS support, you need to link against OpenSSL and set `TH_WITH_SSL=1` when compiling the library.
```sh
$ gcc -o myserver myserver.c th.c -lssl -lcrypto -DTH_WITH_SSL
$ gcc -o myserver myserver.c th.c -lssl -lcrypto -DTH_WITH_SSL=1
```

## Building the project and CMake integration
Expand Down

0 comments on commit f129c3e

Please sign in to comment.