Re: static linking and opportunistic dynamic linking problem

2006-12-16 Thread Steve Langasek
On Fri, Dec 15, 2006 at 02:23:26PM +, Alastair McKinstry wrote: > It looks like providing .la and pkg-config files to explain how to build > it statically > looks like necessary. newt doesn't ordinarily use libtool, so I need to > generate a .la > file and include it in the libnewt-dev. Current

Re: static linking and opportunistic dynamic linking problem

2006-12-15 Thread Alastair McKinstry
Goswin von Brederlow wrote: > [EMAIL PROTECTED] (Marco d'Itri) writes: > > >> On Dec 14, Alastair McKinstry <[EMAIL PROTECTED]> wrote: >> >> >>> So where do people think the bug lies? >>> - Should libdl be compiled into libnewt.a ? >>> >> Yes. >> > > Is there even a libdl.a? >

Re: static linking and opportunistic dynamic linking problem

2006-12-15 Thread Goswin von Brederlow
[EMAIL PROTECTED] (Marco d'Itri) writes: > On Dec 14, Alastair McKinstry <[EMAIL PROTECTED]> wrote: > >> So where do people think the bug lies? >> - Should libdl be compiled into libnewt.a ? > Yes. Is there even a libdl.a? And what if I have libfoo.a libbar.a libblub.a all using dlopen? Should

Re: static linking and opportunistic dynamic linking problem

2006-12-14 Thread Josselin Mouette
Le jeudi 14 décembre 2006 à 11:56 +, Alastair McKinstry a écrit : > partimage depends on libnewt, which I maintain. libnewt-dev ships libnewt.a. > libnewt opportunistically links to libfribidi if it is present; it uses > dlopen() to do so. > > However the partimage build fails when done with '

Re: static linking and opportunistic dynamic linking problem

2006-12-14 Thread Marco d'Itri
On Dec 14, Alastair McKinstry <[EMAIL PROTECTED]> wrote: > So where do people think the bug lies? > - Should libdl be compiled into libnewt.a ? Yes. > - Should the static version of libnewt be built differently so as to > not call dlopen()? Maybe. > - if so, any recommendations on how? Rem

static linking and opportunistic dynamic linking problem

2006-12-14 Thread Alastair McKinstry
Hi, I've an interesting bug scenario sent to me by someone trying to build partimage statically. The partimage build is being done to make a small minimal-environment binary (sort of boot-cd, etc.). partimage depends on libnewt, which I maintain. libnewt-dev ships libnewt.a. libnewt opportunistic