On 2011-11-26 14:20-0800 Alan W. Irwin wrote: > With one exception (the comprehensive test for the static build case) > I have completed the above as of revision 12055. Therefore, please > test (for the -DENABLE_DYNDRIVERS=OFF and also default > -DENABLE_DYNDRIVERS=ON cases) with recent Linux distros such as Fedora > or Debian unstable to find and resolve any shared library linking > issues missed by the slack and lazy linker on my Debian stable > platform. > > Some complications arose in the static build case that can be resolved > by forcing CMake to search for and only use static external libraries > to be consistent with what pkg-config does in the --static case for > the traditional build system for the installed examples.
I tried to solve that inconsistency for NON_TRANSITIVE ON for the static library case with FORCE_EXTERNAL_STATIC ON, but (see other thread about FORCE_EXTERNAL_STATIC) that did not work out because of deficiencies in the static library support for Linux. I was able to resolve the inconsistency by installing one additional development package on Debian stable (libjasper-dev), but the fact remains that such inconsistencies will always be a threat for the (internal) static library case and NON_TRANSITIVE ON. So I fundamentally solved the issue (revision 12066) by only allowing NON_TRANSITIVE ON for the shared libraries case. After all, from the perspective of CMake, NON_TRANSITIVE ON is a no-op for the static library case which is why pkg-config was out of step. This solves the issue by forcing pkg-config to be in step with what happens for cmake (i.e., NON_TRANSITIVE ON is ignored for the static case). I also did one additional change (revision 12067) which is deletion of our versions of FindwxWidgets.cmake and FindwxWidgets.cmake. That is no longer necessary or desireable for the reasons I stated in the commit message. I took this opportunity to do a complete comprehensive test (all 21 major tests) not only of this change, but everything that has happened recently with regard to NON_TRANSITIVE ON. This comprehensive test passed with flying colours with no build errors or obvious run-time errors for any of the 21 different tests. So this should complete my NON_TRANSITIVE changes to the build system. Orion and Andrew: I hope this effort has been worth it and greatly reduces packaging warnings you have been getting on both Fedora and Debian concerning overlinking. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel