nanogui: Static or Shared ?


Previous by date: 27 Jan 2001 10:10:23 -0000 Re: mipsel-linux-gcc keeps core dumping, Alex Holden
Next by date: 27 Jan 2001 10:10:23 -0000 Re: Child Windows, Amit Kulkarni
Previous in thread: 27 Jan 2001 10:10:23 -0000 Static or Shared ?, Sunil Soman
Next in thread: 27 Jan 2001 10:10:23 -0000 Re: Static or Shared ?, Jordan Crouse

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/


Previous by date: 27 Jan 2001 10:10:23 -0000 Re: mipsel-linux-gcc keeps core dumping, Alex Holden
Next by date: 27 Jan 2001 10:10:23 -0000 Re: Child Windows, Amit Kulkarni
Previous in thread: 27 Jan 2001 10:10:23 -0000 Static or Shared ?, Sunil Soman
Next in thread: 27 Jan 2001 10:10:23 -0000 Re: Static or Shared ?, Jordan Crouse


Powered by ezmlm-browse 0.20.