Hi Alan, Alan W. Irwin wrote: > Hi Werner: > > Could you comment on the general reasons why libplplotdmd is built as static > only? > Mainly it was easier for me to setup and since I don't/didn't assume that this library becomes to big - so a shared library might be not useful? My reasoning was: this libplotdmd library is basically an interface to the C functions - quite similar to the import library for a shared library, which is in my understanding only an interface to the functions in the shared library. So, if my dmd library is just an easy interface and is shared, the import library for this shared dmd library is an interface to an interface to the C-API and therefore mostly only overhead. Does this make sense? I'm not sure about that, so I just went the easy way first.
> I locally tried a shared build and ran into trouble with > /usr/lib/gcc/x86_64-linux-gnu/4.1.3/libgphobos.a on Debian Lenny which had > not been compiled with -fPIC (so obviously could not be linked by a shared > version of libplplotdmd). I have submitted a bug report to Debian about > this issue (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=530005). > > Is this just a Debian Lenny packaging issue (compile the objects in > libgphobos with position-independent code) or is this a more general problem > that will require libplplotdmd to be built as a static library into the > indefinite future? > I'm not sure about that, since I didn't try it. But at least gdc should have not much problems with shared libraries, since it's practically just a "frontend" to gcc. Regards, Werner > 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); PLplot scientific plotting software > package (plplot.org); 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 > __________________________ > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://www.creativitycat.com > _______________________________________________ > Plplot-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/plplot-devel > -- Dr. Werner Smekal Institut fuer Allgemeine Physik Technische Universitaet Wien Wiedner Hauptstr 8-10 A-1040 Wien Austria DVR-Nr: 0005886 email: [email protected] web: http://www.iap.tuwien.ac.at/~smekal phone: +43-(0)1-58801-13463 (office) +43-(0)1-58801-13469 (laboratory) fax: +43-(0)1-58801-13499 ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________ Plplot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-devel
