Guido van Rossum | 7d844a7 | 1996-06-26 21:15:02 +0000 | [diff] [blame] | 1 | #!/bin/ksh |
| 2 | |
| 3 | ################################# |
| 4 | # AIX shared library helper # |
| 5 | ################################# |
| 6 | |
| 7 | # ------------------------------------------------------------ |
| 8 | # This script should be in the Modules directory, and I run it |
| 9 | # (from there) after having built all the shared objects. |
| 10 | # ------------------------------------------------------------ |
| 11 | |
| 12 | # -------------------------------------------------- |
| 13 | # Create the export file which will list all symbols |
| 14 | # that the statically linked python executable has |
| 15 | # to make available to dynamically loaded modules. |
| 16 | # -------------------------------------------------- |
| 17 | sort -u *.imp > python.exp |
| 18 | |
| 19 | # --------------------------------------------------------------------- |
| 20 | # Link the python executable. I think this is exactly the same command |
| 21 | # which the unmodified python makefile comes up with, except for the |
| 22 | # addition of the -bE: argument. |
| 23 | # --------------------------------------------------------------------- |
| 24 | cc -O main.o config.o getpath.o libModules.a ../Python/libPython.a \ |
| 25 | ../Objects/libObjects.a ../Parser/libParser.a -lm -lc -lg \ |
| 26 | -H512 -T512 -bE:python.exp \ |
| 27 | -o python |
| 28 | |
| 29 | # ----------------------------------------------------------------- |
| 30 | # Install the Python executable up one directory from Modules (just |
| 31 | # like the unmodified makefile does). |
| 32 | # ----------------------------------------------------------------- |
| 33 | mv python .. |