On Mon, Oct 26, 2009 at 07:47:07AM -0400, Chris Marshall wrote: > I'm planning to clean up the OpenGL Makefile.PL a bit more, along > the lines of adding the ability to explicitly set the required > defines, libs, etc. Beyond that, I'm looking at moving to a > Module::Build implementation to simplify the makefile juggling. > The headers and libraries detection could use something like > Devel::CheckLib (soon to be a more generic version of our PDL > trylink() utilities). The OpenGL library interface would be > structured around GLee or GLEW.
another small issue I found with the present build system: the list of libraries is the same for static and dynamic linking. for distribution packaging, this creates some unnecessary package dependencies, as the resulting binary is linked against libraries whithout ever using symbols contained in them. most of these are only necessary in case of linking against static libraries. in case of libopengl-perl, the unnecessary dependencies are "-lXi -lXmu -lICE -lXext". here is the relevant warnings from the debian package build process: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - dpkg-shlibdeps: warning: dependency on libXi.so.6 could be avoided if "debian/libopengl-perl/usr/lib/perl5/auto/OpenGL/OpenGL.so" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libXmu.so.6 could be avoided if "debian/libopengl-perl/usr/lib/perl5/auto/OpenGL/OpenGL.so" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libICE.so.6 could be avoided if "debian/libopengl-perl/usr/lib/perl5/auto/OpenGL/OpenGL.so" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libXext.so.6 could be avoided if "debian/libopengl-perl/usr/lib/perl5/auto/OpenGL/OpenGL.so" were not uselessly linked against it (they use none of its symbols). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - warnings of this type are also issued for the following parts of PDL: GSL HDF PLplot OpenGLQ (also because it simply copys the lib list from POGL) -- c u henning _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
