From: Alan W. I. <ir...@be...> - 2003-03-14 17:27:59
|
On Fri, 14 Mar 2003, Rafael Laboissiere wrote: > Long answer: This is a bad side-effect of using plplot_libtool, instead of a > full-fledged solution with the right libraries put in the Makefile. NO. You keep forgetting that libtool is a configured script that is adjusted exactly (and only) for the build system. See below. > The > problem comes from here: > > $ grep libqhull /usr/lib/libplplotd.la > dependency_libs='/usr/lib/libfreetype.la -lz /usr/lib/libcsa.la > /usr/lib/libnn.la /usr/lib/libqhull.la -lm -ldl' > > I may try to find a way to force the use of "-lqhull" instead of > "/usr/lib/libqhull.la" in that file, because libqhull is not provided by the > PLplot pakcage. Same thing for -lfreetype. I dunno if this is possible > with libtool, but I will look at it. Do NOT do this. I am surprised I have to go into libtool advocacy mode here with you on this. Our joint experience is it usually does exactly the right thing, and that proves to be the case this time as well. It simply is configured to do the right thing on the build system. In my case (Debian woody) I have an older qhull which was not built with libtool so there is no libqhull.la. But libtool is configured appropriately for that situation on my system. grep qhull /usr/local/plplot_at/lib/libplplotd.la dependency_libs=' /usr/lib/libfreetype.la /usr/local/plplot_at/lib/libcsa.la /usr/local/plplot_at/lib/libnn.la -lqhull -lm -ldl' Note in this case -lqhull is used. So the linking will be fine for all cases. Remember, libtool (and therefore the local copy of that script, plplot-libtool) is configured just for the build system so you cannot generalize the result on one system to what will happen on others. > > Otherwise, I will probably add a dependency on libqhull-dev and > libfreetype6-dev to libplplot-dev. This is the correct approach. If the user wants to build the examples he will obviously need libplplot-dev which will bring in the rest of the required dev packages. Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the Canadian Centre for Climate Modelling and Analysis (www.cccma.bc.ec.gc.ca) and the PLplot scientific plotting software package (plplot.org). __________________________ Linux-powered Science __________________________ |