[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

shared libraries

Hi all.

Maintaining the IRAF package, I've added the ability to use shared
libraries.  This saves considerable disk space, and is also good for
runtime efficiency.

The libraries are built with IRAF, and are used to compile the build
system.  Then, the rest of IRAF is built with that.

I'm presently creating the shared libraries from static ones (which is
also how upstream does it for solaris; it was never implemented on
PC).  The IRAF executables are the only ones that will ever use the
libraries, so they shouldn't go in /usr/lib/libfoo.so.  The package
"iraf" will provide the executables and the libraries (I hope).

How can I modify the path to the libraries?  During compilation, the
build system has to see $buildpath/iraf/lib/libfoo.so.0, but once
installed, the executables must see
/usr/lib/iraf/iraf/lib/libfoo.so.0.  There are a bunch of executables,
so I don't want to have to use a script to set LD_LIBRARY_PATH or

Please ask if I'm not clear..


Reply to: