home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Python 1.4 / Python 1.4 source / Modules / bindit < prev    next >
Encoding:
Korn shell script  |  1996-08-02  |  1.5 KB  |  34 lines  |  [TEXT/R*ch]

  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 ..
  34.