Skip to content

Commit

Permalink
update instructions for compiling on macOS, include instructions for …
Browse files Browse the repository at this point in the history
…macports
  • Loading branch information
toy committed May 29, 2021
1 parent 414eb1b commit bb7e60a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Here's stressdrive running against a 2 GB USB Flash drive:
## Building

### macOS
#### using homebrew

First, you'll need OpenSSL, which you should install via homebrew:

Expand All @@ -51,7 +52,17 @@ Then you can just:

Or compile it directly:

gcc stressdrive.c -o stressdrive -framework IOKit -framework CoreServices -I/usr/local/opt/openssl/include /usr/local/opt/openssl/lib/libcrypto.a
gcc stressdrive.c -o stressdrive -lcrypto -framework IOKit -framework CoreServices -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib

#### using macports

Same commands for macports:

port install openssl

xcodebuild PREFIX=/opt/local SEARCH_PREFIX=/opt/local

gcc stressdrive.c -o stressdrive -lcrypto -framework IOKit -framework CoreServices -I/opt/local/include -L/opt/local/lib

### Ubuntu

Expand Down

0 comments on commit bb7e60a

Please sign in to comment.