I don't think you should strip .so's as part of build process. On gentoo it is generally done by portage itself - there is option to GNU strip "--strip-unneeded" that will strip only things that are safe to get rid of (like info sections, debug sections, and non-exported symbols). Just doing plain strip on .so will kill it mostlikely, and I'm not sure all unices have strip that supports --strip-unneeded
option (I'll have to test IRIX one of these days ;-)If you really want to, test for --strip-unneeded option as part of configure,
and call it if its available for non --enable-debug builds.But again, in general, let the packager handle that - i.e. for you, since you are the packager, write yourself a ascript that will call configure make strip make install, for Gentoo portage does it automatically, for redhat, devs decide if they want to do that,
i.e. for non *-devel.rpm packages. -- Ilya A. Volynets-Evenbakh Total Knowledge. CTO http://www.total-knowledge.com
List hosted by Total Knowledge