blob: 87dda1f19c56ab4b63af731a3b6f14501e7b8c30 [file] [log] [blame]
Guido van Rossum7d844a71996-06-26 21:15:02 +00001#!/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# --------------------------------------------------
17sort -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# ---------------------------------------------------------------------
24cc -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# -----------------------------------------------------------------
33mv python ..