summaryrefslogtreecommitdiff
path: root/doc/install.md
diff options
context:
space:
mode:
authorMike Yin <mikeyin@mikeyin.org>2024-05-05 11:39:54 -0600
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-05-05 23:24:54 +0200
commita90d44d9f156ad280fd130570682f2c90b2c1440 (patch)
treed703838dd44773cd5bf1893d06c2fcc13227735e /doc/install.md
parent6283f5d24d6f61f281034587108759efcdb9acb6 (diff)
Update macOS install instructions
On macOS, Homebrew will install OpenSSL to different locations depending on which architecture you're on (Intel or ARM). It also doesn't put the headers and library files in the default search path for gcc. This added instruction in the doc/install.md aligns with a similar instruction for BSD and is architecture and OpenSSL version agnostic (because it just asks Homebrew to tell us what the prefix is). pkg-config could easily work across platforms or the lookup could be configured to test for homebrew, but I didn't want to make a much bigger change to the autoconf script.
Diffstat (limited to 'doc/install.md')
-rw-r--r--doc/install.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/install.md b/doc/install.md
index b0f165df..76bd377c 100644
--- a/doc/install.md
+++ b/doc/install.md
@@ -132,7 +132,7 @@ at link time.
To build Dillo on MacOS you would need to get FLTK as well as
autoconf and automake if you are building Dillo from the git repository.
-They are available in the brew package manager:
+They are available in the Homebrew package manager:
```
$ brew install autoconf automake fltk
@@ -145,6 +145,14 @@ $ brew install openssl@1.1
$ brew install openssl@3
```
+Homebrew installs libraries and headers in different folders depending on the
+architecture (Intel vs ARM), so you will need to invoke the configure script
+with the following options so it knows where to search:
+
+```
+$ ./configure LDFLAGS="-L`brew --prefix openssl`/lib" CPPFLAGS="-I`brew --prefix openssl`/include"
+```
+
## Windows via Cygwin
Dillo can be built for Windows (tested on Windows 11) by using the