Hi Folks, While trying to efficiently build modules for ROOT on the Mac I discovered a new feature, introduced in 10.3, that has help me with this task. I have not seen any mention of this on the RootTalk lists so thought I'd post it. The feature is a new value for the -undefined option for ld, namely dynamic_lookup. This clears up a lot of issues I had with getting the modules to compile correctly, within undefined symbols, yet not bringing in the kitchen sink. Now I can create dynamically loadable plug-ins using the following commands: export MACOSX_DEPLOYMENT_TARGET 10.3 g++ -bundle -undefined dynamic_lookup Module.o -o libModule.so g++ -bundle -dynamiclib -flat_namespace -undefined suppress \ Module.o -o libModule.dylib I hope this is useful. Simon ---------------------------------------------------------------------- Simon Patton Web: <http://www.slac.stanford.edu/~patton> Lawrence Berkeley Nat. Lab. Tel: (510) 486-6883
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:17 MET