Hello, On Linux I can just add the "-s" c/cxx flag to produce libraries with a minimal number of symbols. However on OSX gcc/gcc-llvm/clang does not produce stripped libraries. Is the an easy way to produce stripped libraries.
Specifically, for SimpleITK, the generated shared libraries for languages are large. The resulting library for this build[1] is used for release, and is compiled with x86_64 and i386(i686) architectures support. The resulting library is 363MB for python, but after "strip -arch all -x -u lib/_SimpleITK.so" is run the library is only 279MB for a resulting savings of 84MB. This results in improved load times when just using SimpleITK. I could add a CMake flag and a post build custom command for the library to run strip on it, but I am wondering is there is an easier or better way? Thanks, Brad [1] http://open.cdash.org/viewNotes.php?buildid=3240200 _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Kitware offers ITK Training Courses, for more information visit: http://kitware.com/products/protraining.php Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ Follow this link to subscribe/unsubscribe: http://www.itk.org/mailman/listinfo/insight-developers
