Re: Lintian: pkg-without-shlibs-has-shlibs-control-file
Darren O. Benham wrote:
> *that* I don't know...
>
> On Mon, Nov 29, 1999 at 11:27:24PM -0500, Ben Darnell wrote:
> > On Mon, Nov 29, 1999 at 08:11:58PM -0800, Darren O. Benham wrote:
> > > Lintian first dumps the obj info of the file by running "objdump" on it.
> > > Then the output is searched for the string "SONAME"
> > > Here's the regex: /^\s*SONAME\s*(\S+)/o
> >
> > Yes, I've found that. What causes objdump to print or not print SONAME?
You have to link your library with the correct options passed to ld to set
the soname. Generally this involves putting something like
-Wl,-soname,libfoo1 in the cc command line that does the final link of your
library. For example, from aalib:
gcc -shared aafont.lo aafonts.lo aavyhen.lo aamktabl.lo aamem.lo
aaprintf.lo aahelp.lo aaslnkbd.lo aaslang.lo aafastre.lo aalinux.lo aax.lo
aaxkbd.lo aaxmouse.lo fontgl.lo font16.lo font14.lo fontx16.lo fontx13.lo
fontx13b.lo fontcour.lo aarec.lo font9.lo font8.lo fontline.lo aacurses.lo
aacurkbd.lo aacurmou.lo aalib.lo aaflush.lo aarender.lo aaout.lo aain.lo
aaedit.lo aaregist.lo aakbdreg.lo aagpm.lo aamoureg.lo aasave.lo aastdout.lo
aastdin.lo aaparse.lo -lslang -lm -lc -L/usr/X11R6/lib -lX11 -lgpm -lc
-Wl,-soname -Wl,libaa.so.1 -o .libs/libaa.so.1.0.3
--
see shy jo
Reply to: