Install homebrew to /opt/homebrew (which is the default for the M1 machines)
Run make
See compilation error
Result
<What is the result of this?>
$ make
CC src/tldr.c
LD tldr
ld: warning: directory not found for option '-L/usr/local/opt/curl/lib'
ld: warning: directory not found for option '-L/usr/local/opt/libzip/lib'
ld: library not found for -lzip
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [tldr] Error 1
Expected Result
Compilation passes.
Additional Information
This diff fixes it at the expense of breaking other platforms:
Leaving the old directories I think works, but it does also emit a warning when running make about those directories not existing. Not sure what best practices around make are with regards to maybe optionally including directories if they exist or not, or if it's standard to ignore "missing directory" warnings.
Steps to Reproduce
/opt/homebrew
(which is the default for the M1 machines)make
Result
<What is the result of this?>
Expected Result
Compilation passes.
Additional Information
This diff fixes it at the expense of breaking other platforms:
Leaving the old directories I think works, but it does also emit a warning when running make about those directories not existing. Not sure what best practices around make are with regards to maybe optionally including directories if they exist or not, or if it's standard to ignore "missing directory" warnings.