Here's a revised version of the makefile (renamed to makefile.txt, so GitHub allows me to upload it) that I have used on MacOS that might be helpful. It has two changes in it:
I try to detect MacOS and, if I do, remove the static linking flags automatically, instead of requiring the user to edit the makefile.
I replaced the CC variable with CXX which is what GNU Make specifies for a C++ compiler (instead of a standard C compiler).
Here's a revised version of the
makefile
(renamed tomakefile.txt
, so GitHub allows me to upload it) that I have used on MacOS that might be helpful. It has two changes in it:makefile
.CC
variable withCXX
which is what GNU Make specifies for a C++ compiler (instead of a standard C compiler).makefile.txt