mex: support compilation on mac with clang + openmp
Does this work? Do you want to have this merged?
If the answer to both questions is yes, then I would suggest rewriting this patch by introducing two variables (something like
OPENMP_LDADD) that would be set by the configure script and that would contain whatever is relevant for the platform (i.e. respectively
-fopenmpand nothing on GNU/Linux and Windows, and whatever is needed on macOS). Hence the check for the
MACOSconditional in all
*.amfiles could be removed.
I just pushed that in case it would be useful in the future. It compiles and runs but I don't like the solution setting
true. So, for now, we should just keep this in a branch.