Guido van Rossum | 566b35f | 1996-09-06 16:13:30 +0000 | [diff] [blame] | 1 | Subject: dynamic loading on NeXTSTEP |
| 2 | From: horst@il.us.swissbank.com (Ted Horst) |
| 3 | To: python-list@cwi.nl |
| 4 | Date: Fri, 6 Sep 1996 15:02:26 GMT |
| 5 | X-Newsgroups: comp.lang.python |
| 6 | X-Organization: Swiss Bank Corporation CM&T Division |
| 7 | |
| 8 | |
| 9 | These 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). |
| 11 | Unfortunately, I don't know anything about the configure scripts, so I don't |
| 12 | know how to fix these things properly, but this works for me. I would be |
| 13 | interested 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 | |
| 18 | edit Python/importdl.c |
| 19 | under: |
| 20 | #ifdef USE_RLD |
| 21 | add: |
| 22 | #define SHORT_EXT ".a" |
| 23 | #define LONG_EXT "module.a" |
| 24 | |
| 25 | edit Modules/Setup |
| 26 | uncomment *shared* |
| 27 | (other editing as desired) |
| 28 | |
| 29 | make (just to create the Makefiles) |
| 30 | |
| 31 | edit 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 | |
| 40 | make "OPT=-O3 -fschedule-insns2 -ObjC -arch m68k -arch i486" |
| 41 | |
| 42 | |
| 43 | Ted Horst |
| 44 | (not speaking for Swissbank) |
Guido van Rossum | c8adefe | 1996-09-06 23:31:18 +0000 | [diff] [blame] | 45 | |
| 46 | |
| 47 | Subject: Re: dynamic loading on NeXTSTEP |
| 48 | From: horst@il.us.swissbank.com (Ted Horst) |
| 49 | To: python-list@cwi.nl |
| 50 | Date: Fri, 6 Sep 1996 16:27:32 GMT |
| 51 | X-Newsgroups: comp.lang.python |
| 52 | X-Organization: Swiss Bank Corporation CM&T Division |
| 53 | |
| 54 | Ted Horst writes |
| 55 | > |
| 56 | > These are the steps that I took to get dynamic loading working under NeXTSTEP |
| 57 | > (3.3 m68k, i486) for Python1.4beta3 (including the Numeric stuff). |
| 58 | |
| 59 | <SNIP> |
| 60 | |
| 61 | > make "OPT=-O3 -fschedule-insns2 -ObjC -arch m68k -arch i486" |
| 62 | > |
| 63 | > Ted Horst |
| 64 | > (not speaking for Swissbank) |
| 65 | |
| 66 | Wow, I guess I was overzealous with the optimizations. Upon further |
| 67 | testing, I discovered that the Numeric stuff did not work properly on |
| 68 | Intel machines, but did work properly on m68k. I dropped the |
| 69 | optimization to -O2 (leaving out the -fschedule-insns2), and it seems |
| 70 | to behave properly on both architectures now. |
| 71 | |
| 72 | So, |
| 73 | |
| 74 | make "OPT=-O2 -ObjC -arch m68k -arch i486" |
| 75 | |
| 76 | looks like a better choice. |
| 77 | |
| 78 | Sorry for the misguidance, |
| 79 | |
| 80 | Ted Horst |
| 81 | (still not speaking for SwissBank) |