Hi all,
(MacOS 10.14.6… yes I know I should update it… )
I want to have a static object file and not mess with setting up the shared library environment on my mac, but I also want to use the shared library in the python interface which seems convenient.
Right now, I make one pass with
“make mode=shared serial” which builds the .so file but gives a lmp_serial object file which requires the .so file.
Then I do a second pass with
“make serial” to generate a lmp_serial which doesn’t require the shared library for simplicity.
Everything works… I can use the static executable without any shared library present, and after I install for python, I can access the LAMMPS module in python. But it seems a bit error prone to need to do the two passes.
What is the preferred build method to generate the shared library AND a static executable with no dependencies? Or do I just always need to run the two passes?
Thanks,
Craig