Re: Dynamic loading on a NeXT?

michael shiplett (michael.shiplett@umich.edu)
Thu, 20 Apr 1995 11:13:19 -0400

Here's how a Makefile snippet from my pubkey module showing dynamic
module loading on a 68040 NS 3.0 system with Python 1.1.1:

====================

PKC_OBJS= foo.o bar.o util.o

CFLAGS= -O
ALL_CFLAGS= ${INCLUDES} ${DEFS} ${CFLAGS}
LD= ld
LDFLAGS= -r

pubkeymodule.o: pubkeymodule.c
${CC} ${ALL_CFLAGS} -c pubkeymodule.c

pubkey.o: pubkeymodule.o
${LD} ${LDFLAGS} ${PKC_OBJS} pubkeymodule.o -o $@

====================

On a NeXT, the search order for a dynamically loaded module `blah' is
blah.o
blahmodule.o

I've been tempted to change this to include `blah.so' &
`blahmodule.so' so Sun and NeXT targets are the same.

michael