From: Alan W. I. <ai...@us...> - 2003-12-31 21:32:45
|
On 2003-12-31 10:28-0800 Alan W. Irwin wrote: > [...]That's why I followed the > recommendation and used FLIBS (created by AC_F77_LIBRARY_LDFLAGS) when > building that library and those extra flags are actually used for the > libplplotf77 build. plplot_libtool (simply a copy of the locally configured > libtool script that has been used to create everthing in the build process) > then "remembers" that situation when linking to libplplotf77 and supplies > the appropriate flags for the fortran examples. BTW, I believe Rafael's new pkg-config method of configuring the examples should do the same as plplot_libtool since IIRC the new method uses linking flags saved in libplplotf77d.la. For example my bindings/f77/.libs/libplplotf77d.la has dependency_libs=' /home/software/plplot_cvs/HEAD/plplot_working/src/libplplotd.la /usr/lib//libfreetype.la /home/software/plplot_cvs/HEAD/plplot_working/lib/csa/libcsirocsa.la /home/software/plplot_cvs/HEAD/plplot_working/lib/nn/libcsironn.la -lqhull -ldl -L/usr/lib/gcc-lib/i386-linux/2.95.4 -lg2c -lm ' and relink_command="(cd /home/software/plplot_cvs/HEAD/plplot_working/bindings/f77; /bin/sh ../../libtool --mode=relink g77 -g -O2 -o libplplotf77d.la -rpath /usr/local/plplot_at/lib -version-info 9:0:0 -rpath /usr/local/plplot_at/lib -no-undefined ../../src/libplplotd.la sc3d.lo sccont.lo scstubs.lo strutil.lo sfstubs.lo -L/usr/lib/gcc-lib/i386-linux/2.95.4 -lg2c -lm @inst_prefix_dir@)" Note, both these strings include $(FLIBS) = -L/usr/lib/gcc-lib/i386-linux/2.95.4 -lg2c -lm since I haven't yet updated to the new configure.ac with commented out AC_F77_LIBRARY_LDFLAGS and blank $(FLIBS). 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 PLplot scientific plotting software package (plplot.org), the Yorick front-end to PLplot (yplot.sf.net), the Loads of Linux Links project (loll.sf.net), and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |