Static linking



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]