blob: 09745cd5db75896e1e51d279c7332d00193e0c1d [file] [log] [blame]
Guido van Rossum566b35f1996-09-06 16:13:30 +00001Subject: dynamic loading on NeXTSTEP
2From: horst@il.us.swissbank.com (Ted Horst)
3To: python-list@cwi.nl
4Date: Fri, 6 Sep 1996 15:02:26 GMT
5X-Newsgroups: comp.lang.python
6X-Organization: Swiss Bank Corporation CM&T Division
7
8
9These are the steps that I took to get dynamic loading working under NeXTSTEP
10(3.3 m68k, i486) for Python1.4beta3 (including the Numeric stuff).
11Unfortunately, I don't know anything about the configure scripts, so I don't
12know how to fix these things properly, but this works for me. I would be
13interested in how other people have done this as well.
14
15/configure --prefix=/home/horst/Unix --with-readline=/home/horst/Unix/lib
16--with-thread --with-next-archs='m68k i486' --without-libm
17
18edit Python/importdl.c
19 under:
20 #ifdef USE_RLD
21 add:
22 #define SHORT_EXT ".a"
23 #define LONG_EXT "module.a"
24
25edit Modules/Setup
26 uncomment *shared*
27 (other editing as desired)
28
29make (just to create the Makefiles)
30
31edit Makefiles
32 change all AR= ar to AR = libtool
33 change all $(AR) cr ... to $(AR) -o ...
34 in Modules/Makefile change:
35 libm =
36 LDSHARED= cc -r -nostdlib $(CFLAGS)
37 CCSHARED= -r -nostdlib
38 LINKFORSHARED= -u libsys_s
39
40make "OPT=-O3 -fschedule-insns2 -ObjC -arch m68k -arch i486"
41
42
43Ted Horst
44(not speaking for Swissbank)