Open daniellivingston opened 3 years ago
Other references:
(0): https://stackoverflow.com/a/44728442/5150303 (1): https://stackoverflow.com/questions/844819/how-to-static-link-on-os-x (2): http://mad.web.cern.ch/mad/releases/madng/madng-git/src/Makefile.windows
Neither solution in 0 or 1 works.
Compiling with
make static
leaveslibquadmath
still dynamically linked:This is a problem for binary portability.
On macOS, static linking is really hard:
A way I have compiled static libraries in the past is to do something like:
That works but is not a good general solution. Currently trying to solve this in the branch mac-os-fix. https://github.com/lanl/LaGriT/tree/macos-static-fix