nanogui: Thread: Static or Shared ?


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Static or Shared ?
From: Sunil Soman ####@####.####
Date: 27 Jan 2001 06:08:12 -0000
Message-Id: <01012711464601.00926@soman.com>

A rather trivial question but -
I am working (along with Amit here) on a C based widget set for nano-X. Should
I make my library a shared one so that only one copy is loaded at runtime ?
Any issues with this ? 
Why is libnano-X static & not shared ?
Subject: Re: Static or Shared ?
From: Alex Holden ####@####.####
Date: 27 Jan 2001 10:10:23 -0000
Message-Id: <Pine.LNX.4.04.10101271007020.606-100000@hyperspace.linuxhacker.org>

On Sat, 27 Jan 2001, Sunil Soman wrote:
> A rather trivial question but -
> I am working (along with Amit here) on a C based widget set for nano-X. Should
> I make my library a shared one so that only one copy is loaded at runtime ?

It shouldn't be difficult to do either. Shared libraries are a big win on
systems which support them, but obviously it'd be nice if you can build
statically too for systems like ucLinux which don't have shared library
support.

> Why is libnano-X static & not shared ?

Partially historic, partially to make it easier to test without needing to
install the libraries (if you use shared libraries and don't install them
to the system locations, you need to specify their location explicitly
at runtime with LD_LIBRARY_PATH). It does seem to work fine when you turn
SHAREDLIBS on in the config (apart from one program which refuses to
build due to a makefile bug which makes it still want to link against the 
static libraries), and the resulting applications end up a lot smaller as 
a result.

-- 
------- Alex Holden -------
http://www.linuxhacker.org/
 http://www.robogeeks.org/

Subject: Re: Static or Shared ?
From: Jordan Crouse ####@####.####
Date: 29 Jan 2001 15:08:01 -0000
Message-Id: <3A75860B.3219A554@censoft.com>

I think that Greg has worked all the bugs out for the shared libaries. 
The most important thing is that we make it easy to go shared / static,
since
shared is better for a operating environment, but static is much better
for a development environment, especially if you are using more than 1
microwindows tree at a time.

Jordan

Alex Holden wrote:
>
> > Why is libnano-X static & not shared ?
> 
> Partially historic, partially to make it easier to test without needing to
> install the libraries (if you use shared libraries and don't install them
> to the system locations, you need to specify their location explicitly
> at runtime with LD_LIBRARY_PATH). It does seem to work fine when you turn
> SHAREDLIBS on in the config (apart from one program which refuses to
> build due to a makefile bug which makes it still want to link against the
> static libraries), and the resulting applications end up a lot smaller as
> a result.
> 
> --
> ------- Alex Holden -------
> http://www.linuxhacker.org/
>  http://www.robogeeks.org/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.