cmake cvs and runtime path resolution

Benjamin Reed rangerrick at gmail.com
Thu Feb 21 20:25:45 CET 2008


On Thu, Feb 21, 2008 at 1:57 PM, Brad King <brad.king at kitware.com> wrote:


>  > $ eu-readelf -d /usr/lib/libpng.so | grep SONAME
>  >   SONAME            Library soname: [libpng12.so.0]
>
>  This could be helpful, thanks.

and on Mac OS X:

$ otool -L /sw/lib/libpng.dylib
/sw/lib/libpng.dylib:
	/sw/lib/libpng12.0.dylib (compatibility version 19.0.0, current version 19.0.0)
	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 88.3.9)

(note that if you do the same for a mach-o BUNDLE file, ie, loadable
module, it does not work, as bundles have no soname):

$ otool -L /sw/lib/kde3/dcopserver.so
/sw/lib/kde3/dcopserver.so:
	/sw/lib/libkdeinit_dcopserver.dylib (compatibility version 0.0.0,
current version 0.0.0)
	/sw/lib/libDCOP.4.dylib (compatibility version 7.0.0, current version 7.0.0)
	/sw/lib/libqt-mt.3.dylib (compatibility version 3.3.0, current version 3.3.8)
	/usr/X11/lib/libGL.1.dylib (compatibility version 1.2.0, current version 1.2.0)
	/usr/X11/lib/libXmu.6.dylib (compatibility version 9.0.0, current
version 9.0.0)
	/usr/X11/lib/libXrender.1.dylib (compatibility version 5.0.0, current
version 5.0.0)
	/usr/X11/lib/libXrandr.2.dylib (compatibility version 4.0.0, current
version 4.0.0)
	/usr/X11/lib/libXcursor.1.dylib (compatibility version 2.0.0, current
version 2.2.0)
	/usr/X11/lib/libXinerama.1.dylib (compatibility version 2.0.0,
current version 2.0.0)
	/usr/X11/lib/libXft.2.dylib (compatibility version 4.0.0, current
version 4.2.0)
	/sw/lib/freetype219/lib/libfreetype.6.dylib (compatibility version
10.0.0, current version 10.16.0)
	/usr/X11/lib/libfontconfig.1.dylib (compatibility version 3.0.0,
current version 3.0.0)
	/usr/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current
version 11.0.0)
	/usr/X11/lib/libX11.6.dylib (compatibility version 9.0.0, current
version 9.0.0)
	/usr/X11/lib/libSM.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/X11/lib/libICE.6.dylib (compatibility version 10.0.0, current
version 10.0.0)
	/sw/lib/libpng12.0.dylib (compatibility version 19.0.0, current version 19.0.0)
	/usr/X11/lib/libXau.6.dylib (compatibility version 7.0.0, current
version 7.0.0)
	/usr/X11/lib/libXdmcp.6.dylib (compatibility version 7.0.0, current
version 7.0.0)
	/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 111.0.0)
$ file /sw/lib/kde3/dcopserver.so /sw/lib/libpng.dylib
/sw/lib/kde3/dcopserver.so: Mach-O bundle i386
/sw/lib/libpng.dylib:       Mach-O dynamically linked shared library i386
$ otool -hv /sw/lib/kde3/dcopserver.so /sw/lib/libpng.dylib
/sw/lib/kde3/dcopserver.so:
Mach header
      magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
   MH_MAGIC    I386        ALL  0x00      BUNDLE    28       1800
NOUNDEFS DYLDLINK TWOLEVEL
/sw/lib/libpng.dylib:
Mach header
      magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
   MH_MAGIC    I386        ALL  0x00       DYLIB    11       1228
NOUNDEFS DYLDLINK TWOLEVEL SUBSECTIONS_VIA_SYMBOLS

-- 
Benjamin Reed a.k.a. Ranger Rick
Fink, KDE, and Mac OS X development
http://www.racoonfink.com/


More information about the Kde-buildsystem mailing list