[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: GTK static libs
- From: rsmith xs4all nl
- To: gtk-app-devel-list redhat com
- Subject: Re: GTK static libs
- Date: Tue, 1 Feb 2000 23:43:51 +0100 (CET)
On 30 Jan, Erik Mouw wrote:
> > 2. Is there a elegant method to compile one time with static, another
> > time with dynamic libs??
>
> Not that I'm aware of. Probably the elegant option doesn't exist because
> a) dynamic linking is the Right Thing [tm], and b) static linking is *very*
> OS/compiler dependent (-static won't work on SGI IRIX, for example).
You can pass options to the linker on the GCC command line (with -Wl or
-Xlinker). According to the ld info pages you can use the -Bdynamic and
-Bstatic flags to link dynamically resp. statically to the library
following the switch. Is this what you mean? (haven't tried this,
though ;-)
Roland
--
Roland Smith "I haven't lost my mind,
r s m i t h @ x s 4 a l l . n l I know exactly where I left it."
http://www.xs4all.nl/~rsmith/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]