QNX4 and "shared libraries": no way?

I need to include the GMP as an “engine” for the OpenSSL v0.9.8, as far as
I can tell, this involves the support for the shared libraries.

There is the “mkshlib” utility (“make shared library”) on the ftp.qnx.com,
will it help me?
Or the way QNX4 can load libs at run-time is not what all other UNIXes
expect?

Tony.

Tony <mts.spb.suxx@mail.ru> wrote:

I need to include the GMP as an “engine” for the OpenSSL v0.9.8, as far as
I can tell, this involves the support for the shared libraries.

There is the “mkshlib” utility (“make shared library”) on the ftp.qnx.com,
will it help me?
Or the way QNX4 can load libs at run-time is not what all other UNIXes
expect?

QNX4 did not have good shared library/DLL support.

mkshlib was a work-around to create shared libraries, but mostly for
a library that was going to be used by multiple processes – you still
had to explicitly link against a stub library for your program, and if
you’re linking against a stub library, and only one process is going to
use the library, you might just as well link against a static library.

If multiple people are going to use it, then it may be worth taking
the performance cost (extra indirection on function call) for the
memory space savings.

Even so, getting the mkshlib stuff to work is a bit finicky, and can
be evev more finicky if you’re trying to use other shared libraries
(e.g. TCP/IP) in the process.

-David

David Gibbs
QNX Training Services
dagibbs@qnx.com