I am having a problem generating a shared library for a class which I want to store/read from TTrees in OS X 10.5, running root 5.19/02. The following commands work on a Debian machine running root 5.16:
which returns “ld: unknown option: -soname”. After a brief search, I find that Darwin doesn’t use the -soname flag, and it is instead replaced by -dylib_install_name, so the last line becomes
I know shared library generation flags are not root-specific and therefore don’t really belong in root-config; on the other hand, if it would not be too difficult to implement, it would make a lot of tasks easier!
Actually with a bit of script magic, it works pretty well. Almost all the shared library in our roottest suite are created via a Makefile calling ACLiC.
Actually with a bit of script magic, it works pretty well. Almost all the shared library in our roottest suite are created via a Makefile calling ACLiC.