[maemo-developers] Static and dynamic linkage

From: Eero Tamminen eero.tamminen at nokia.com
Date: Wed Nov 28 10:19:17 EET 2007

ext maemo-developers-bounces at maemo.org 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 statically link in the SQLite library but leave 
> the rest of the linkage as is.

	- Eero

More information about the maemo-developers mailing list