[10411] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: static link w/gtk
daemon@ATHENA.MIT.EDU (Jeff Garzik)
Tue Nov 24 16:55:00 1998
To: gtk-list@redhat.com
Date: Tue, 24 Nov 1998 16:56:57 -0500 (EST)
Reply-To: jgarzik@pobox.com
In-Reply-To: <3.0.3.32.19981124132118.009051d0@mail1.jpl.nasa.gov> from "Matt Rosencrantz" at Nov 24, 98 01:21:18 pm
From: Jeff Garzik <jgarzik@pobox.com>
Resent-From: gtk-list@redhat.com
Matt Rosencrantz wrote:
> but, how do you set the compiler flags to link some libs statically and
> some libs dynamically?
For the libs you specific want static, or specifically dynamic,
reference the full lib pathname.
gcc -o foo foo.o /usr/lib/libglib.a /usr/lib/libgtk+.a
Jeff
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null