1 .TH DH_MAKESHLIBS 1 "" "Debhelper Commands" "Debhelper Commands"
3 dh_makeshlibs \- automatically create shlibs file
6 .I "[debhelper options] [-mmajor] [-V[dependancies]] [-n]"
8 dh_makeshlibs is a debhelper program that automatically scans for shared
9 libraries, and generates a shlibs file for the libraries it finds.
11 It also adds a call to ldconfig in the postinst and postrm scripts (in
12 DH_COMPAT=3 mode and above only).
18 for a list of options common to all debhelper commands.
20 .B \-mmajor, \--major=major
21 Instead of trying to guess the major number of the library from the filename
22 of the library, use the major number specified after the -m parameter.
24 .B \-V[dependancies], \--version-info, \--version-info=dependancies
25 By default, the shlibs file generated by this program does not make packages
26 depend on any particular version of the package containing the shared
27 library. It may be necessary for you to add some version dependancy
28 information to the shlibs file. If -V is specified with no dependancy
29 information, the current version of the package is plugged into a dependancy
30 that looks like "packagename (>= packageversion)". If -V is specified with
31 parameters, the parameters can be used to specify the exact dependancy
32 information needed (be sure to include the package name).
35 Do not modify postinst/postrm scripts.
39 Assuming this is a package named libfoobar1, generates a shlibs file that
41 libfoobar 1 libfoobar1
44 Assuming the current version of the package is 1.0-3, generates a shlibs
45 file that looks something like:
46 libfoobar 1 libfoobar1 (>= 1.0-3)
48 .B dh_makeshlibs \-V "'libfoobar1 (>= 1.0)'"
49 Generates a shlibs file that looks something like:
50 libfoobar 1 libfoobar1 (>= 1.0)
54 for a list of environment variables that affect all debhelper commands.
58 There is no guarantee that the program will get the shlibs file right. For
59 example, it may not correctly guess the major number of your package. In
60 cases like these (and perhaps in general, just to be safe), it is better to
61 create a debian/shlibs file by hand, or force it to use the correct major
62 number by specifying the -m parameter.
64 This is a "do what I Mean" type program - you have been warned!
66 Joey Hess <joeyh@debian.org>