Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Dec 1997 17:10:07 +1030
From:      Mike Smith <mike@smith.net.au>
To:        Nate Williams <nate@mt.sri.com>
Cc:        Terry Lambert <tlambert@primenet.com>, jkh@time.cdrom.com (Jordan K. Hubbard), mike@smith.net.au, hsu@FreeBSD.ORG, hackers@hub.freebsd.org
Subject:   Re: shared library with static Motif? 
Message-ID:  <199712070640.RAA00701@word.smith.net.au>
In-Reply-To: Your message of "Sat, 06 Dec 1997 16:17:06 PDT." <199712062317.QAA06878@mt.sri.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> But, aside from legalities the real issue hasn't been answered.  Is it
> *technically* possible to link in a 'static' library into a 'shared'
> library so that the end-user doesn't need a Motif library to get access
> to the shared library?

Fairly obviously, no.  Shared libraries are built PIC, as their load 
address is not known (and may vary across different mappings of a given 
copy).  Static libraries are fixed up at link time, as offsets in them 
are relative to their position in the executable, which is loaded at a 
known (fixed) address.

mike







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712070640.RAA00701>