Re: Static linking
- From: Russell Shaw <rjshaw iprimus com au>
- To: gtk-app-devel-list gnome org
- Subject: Re: Static linking
- Date: Wed, 01 Oct 2003 01:56:58 +1000
Ian Bell wrote:
On Tuesday 30 Sep 2003 11:13 am, Russell Shaw wrote:
Hi,
How do i make my program get statically linked to
the system gtk2 development libraries using pkg-config?
It seems to link dynamically by default:
pkg-config gtk+-2.0 --libs
-Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
I think i need the -static option instead of --export-dynamic.
You alos need to make sure you have all the static .a libs
I've got lots of .a and .la files from libgtk2.0-dev (debian).
How do i get "pkg-config gtk+-2.0 --libs" to put out -static
instead of --export-dynamic ?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]