Re: Static and dynamic linkage

2007-12-04 Thread Frantisek Dufka
[EMAIL PROTECTED] wrote: > > Which would mean having to deal with SQLite as a dependency of this > package... > I have similar problem with ScummVM. I really do not want to deal with all the dependencies and maintain them in Maemo extras repository so I am linking libmad, Tremor, FLAC, libmpe

Re: Static and dynamic linkage

2007-12-03 Thread maemo
On Thu, 29 Nov 2007, Guillem Jover wrote: > Better do something like: > > $ gcc -o test \ > -lsomedynamiclib \ > -Wl,-Bstatic -lsomestaticlib -Wl,-Bdynamic \ > -lsomeotherdynamiclib \ > ... > > > > Specifically, I want to statically link in the SQLite library but leave

Re: Static and dynamic linkage

2007-12-03 Thread maemo
On Wed, 28 Nov 2007, Eero Tamminen wrote: > Just specify the static library you want to link with: > gcc -o test -lsomedynamiclib my-static-libs/foobar.a Using autotools? -- Aj. ___ maemo-developers mailing list maemo-developers@maemo.org htt

Re: Static and dynamic linkage

2007-11-29 Thread Guillem Jover
On Wed, 2007-11-28 at 10:19:17 +0200, ext Eero Tamminen wrote: > [EMAIL PROTECTED] wrote: > > Is there a standard way to ask for a specific library to be linked in > > statically and the rest to be dynamic? > > Just specify the static library you want to link with: > gcc -o test -lsomedynam

Re: Static and dynamic linkage

2007-11-28 Thread Frantisek Dufka
[EMAIL PROTECTED] wrote: > Is there a standard way to ask for a specific library to be linked in > statically and the rest to be dynamic? > > Specifically, I want to statically link in the SQLite library but leave > the rest of the linkage as is. > It may work in your case but in general there

Re: Static and dynamic linkage

2007-11-28 Thread Eero Tamminen
Hi, ext [EMAIL PROTECTED] wrote: > Is there a standard way to ask for a specific library to be linked in > statically and the rest to be dynamic? Just specify the static library you want to link with: gcc -o test -lsomedynamiclib my-static-libs/foobar.a > Specifically, I want to static

Static and dynamic linkage

2007-11-27 Thread maemo
Is there a standard way to ask for a specific library to be linked in statically and the rest to be dynamic? Specifically, I want to statically link in the SQLite library but leave the rest of the linkage as is. -- A ___ maemo-developers mailing