annotate Modules/bindit @ 3930:52c19ee83a6b legacy-trunk

Guido's 1.4b2 fixes: Py_GetProgramName, Py_GetPrefix and Py_GetExecPrefix.
author Jack Jansen <jack.jansen@cwi.nl>
date Fri, 02 Aug 1996 15:16:16 +0000
parents b250b270dbd4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3733
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
1 #!/bin/ksh
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
2
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
3 #################################
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
4 # AIX shared library helper #
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
5 #################################
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
6
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
7 # ------------------------------------------------------------
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
8 # This script should be in the Modules directory, and I run it
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
9 # (from there) after having built all the shared objects.
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
10 # ------------------------------------------------------------
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
11
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
12 # --------------------------------------------------
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
13 # Create the export file which will list all symbols
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
14 # that the statically linked python executable has
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
15 # to make available to dynamically loaded modules.
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
16 # --------------------------------------------------
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
17 sort -u *.imp > python.exp
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
18
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
19 # ---------------------------------------------------------------------
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
20 # Link the python executable. I think this is exactly the same command
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
21 # which the unmodified python makefile comes up with, except for the
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
22 # addition of the -bE: argument.
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
23 # ---------------------------------------------------------------------
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
24 cc -O main.o config.o getpath.o libModules.a ../Python/libPython.a \
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
25 ../Objects/libObjects.a ../Parser/libParser.a -lm -lc -lg \
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
26 -H512 -T512 -bE:python.exp \
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
27 -o python
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
28
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
29 # -----------------------------------------------------------------
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
30 # Install the Python executable up one directory from Modules (just
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
31 # like the unmodified makefile does).
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
32 # -----------------------------------------------------------------
b250b270dbd4 aix sharedlib helpers
Guido van Rossum <guido@python.org>
parents:
diff changeset
33 mv python ..