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

Re: Trouble with shared libraries



Cajus Pollmeier <c.pollmeier@gmx.net> immo vero scripsit:

> > Are you the upstream to the package too ?
> 
> No. The package is sgi's failsafe, it doesn't use libtool and I'm unable to 
> patch it to do so in a reasonable time frame. Thats why I'm asking questions 
> on debian-mentors. If there's a clean, simple solution, I'd prefere that.
> 
> You may want to look at their makefiles. The original package can be found on 
> http://oss.sgi.com/projects/failsafe/ -> CVS. I've modified it to fit 
> debian's needs and split it into about 10 deb's. Now I'm lucky that it 
> builds. Perhaps you might assist me when putting libtool in there.


libtool is easy.

Replace:

cc -o whatever.o whatever.c 
with

libtool -o whatever.lo whatever.c


and replace

cc -o whatever.so whatever.o other.o 
with

libtool cc -o whatever.la whatever.lo other.lo -version-info 0:0:0 -export-dynamic


They will make the shared library links properly.

Also, use

libtool install whatever.la $(DESTDIR)/usr/lib/
libtool rm -f *~ *.lo whatever.la

etc.



regards,
	junichi

-- 
dancer@debian.org : Junichi Uekawa   http://www.netfort.gr.jp/~dancer
GPG Fingerprint : 17D6 120E 4455 1832 9423  7447 3059 BF92 CD37 56F4
Libpkg-guide: http://www.netfort.gr.jp/~dancer/column/libpkg-guide/


-- 
To UNSUBSCRIBE, email to debian-mentors-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: