| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2008.04.11 14:50 "Re: Linking against libz, libjpeg", by <dean@brewsession.com>Thanks everyone for the rpath suggestion. Since the current version of libz is so old, even Solaris probably has version 1.2.3. Regards, --Dean Bob Friesenhahn wrote on 04/10/08 18:57: > On Thu, 10 Apr 2008, Dean wrote: > >>>> Note that I tell it to look for zlib and jpeg in /usr/dist/share/..., >>>> but the >>>> compiled binaries link against /usr/lib: > > What evidence are you using to know that the compiled binaries link > against /usr/lib? > > If you are using 'ldd' to test which libraries are used, then it is > important to know that on Solaris, the 'crle' command is used to set the > default linker run-time search path (similar to ldconfig on Linux and > FreeBSD). Unless a -R option was included in your build to hard-code > the run-time search path for the library, the system's version may use a > name similar enough that it will be used by default since it is in the > linker run path and your library is not. If each library is installed > in its own directory tree, then you should include a hard-coded run > path. It looks like libtiff's configure accepts a '--enable-rpath' to > automatically add a run-path at link time. Do 'man ld.so.1' to learn > about the run-time linker. > > Here is some sample output from crle: > > % crle > > Configuration file [version 4]: /var/ld/ld.config > Default Library Path (ELF): > /lib:/usr/lib:/usr/openwin/lib:/usr/local/lib:/usr/sfw/lib > Trusted Directories (ELF): /lib/secure:/usr/lib/secure (system > default) > > Command line: > crle -c /var/ld/ld.config -l > /lib:/usr/lib:/usr/openwin/lib:/usr/local/lib:/usr/sfw/lib > > ====================================== > Bob Friesenhahn > bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/ > GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ > -- --Dean -- Unscrambler of eggs [1709.5k, 224.8deg] Apparent Rennerian ------------------------------------------------------------------------------- i am become def, the mixer of words I must obey the inscrutable exhortations of my soul |
|||||||