Static linking
- From: Russell Shaw <rjshaw iprimus com au>
- To: gtk-app-devel-list gnome org
- Subject: Static linking
- Date: Tue, 30 Sep 2003 20:13:01 +1000
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.
I'm using an autoconf/automake setup.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]