This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Calling shared libs from static libs
- From: Michael Matz <matz at suse dot de>
- To: Russell Shaw <rjshaw at iprimus dot com dot au>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 1 Oct 2003 14:12:30 +0200 (CEST)
- Subject: Re: Calling shared libs from static libs
Hi,
On Wed, 1 Oct 2003, Russell Shaw wrote:
> ld -o shapegen -static /usr/lib/gcrt1.o main.o gui.o xmalloc.o object.o menu.o dialog.o
> -L /usr/X11R6/lib
> -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
> -lc /usr/lib/gcc-lib/i386-linux/3.3.1/libgcc.a
You of course have to link against the necessary libraries. -lX11 to
start with.
Ciao,
Michael.