Guido van Rossum  committed 53019e3

Re-install aix files (what happened?)

  • Participants
  • Parent commits 2897daf
  • Branches legacy-trunk

Comments (0)

Files changed (3)

File Modules/ld_so_aix

+#   ========================================================================
+#   FILE:           ld_so_aix
+#   TYPE:           executable, uses makexp_aix
+#   SYSTEM:         AIX
+#   DESCRIPTION:    Creates a shareable .o from a pre-compiled (unshared)
+#                   .o file
+#   ARGUMENTS:      Same as for "ld".  The -bM, -bE, -bI, -H, -T, and -lc
+#                   arguments of "ld" will be supplied by this script.
+#   NOTES:          1.  Currently specific to the building of Python
+#                       interpreter shared objects, in that the entry
+#                       point name is hardcoded based on the object file
+#                       name (the "mathmodule.o" file will expect an
+#                       entry point of "initmath").  This could be remedied
+#                       by the support (or simple expectation) of a "-e"
+#                       argument.
+#                   2.  The resulting shared object file is left in the
+#                       current directory with the extension .so
+#                   3.  Uncommenting the "echo" lines gives detailed output
+#                       about the commands executed in the script.
+#   HISTORY:        Jul-1-1996  -- Make sure to use /usr/ccs/bin/ld    --
+#                               -- Use makexp_aix for the export list. --
+#                   Vladimir Marangozov     (
+#                   Manus Hand ( -- Initial code -- 6/24/96
+#   ========================================================================
+# Variables
+filename=`echo $objfile | sed -e "s:.*/\([^/]*\)$:\1:" -e "s/\..*$//"`
+entry=init`echo $filename | sed "s/module.*//"`
+ldopts="-e$entry -bE:$filename.exp -bI:python.exp -bM:SRE -T512 -H512 -lc"
+ldargs="$objfile $*"
+# Export list generation
+makexp_aix $filename.exp "$objfile" $objfile
+# Perform the link.
+#echo "ld $ldopts $ldargs"
+/usr/ccs/bin/ld $ldopts $ldargs
+# Delete the module's export list file.
+# Comment this line if you need it.
+rm -f $filename.exp
+# Remove the exec rights on the shared module.
+#echo chmod -x `echo $objfile | sed "s/\.o$/.so/"`
+chmod -x `echo $objfile | sed "s/\.o$/.so/"`

File Modules/makexp_aix

+# ===========================================================================
+# FILE:         makexp_aix
+# TYPE:         standalone executable
+# SYSTEM:	AIX 3.2.5 and AIX 4
+# DESCRIPTION:  This script creates an export list of ALL global symbols
+#               from a list of object or archive files.
+# USAGE:        makexp_aix <OutputFile> "<FirstLine>" <InputFile> ...
+#               where:
+#                      <OutputFile> is the target export list filename.
+#                      <FirstLine> is the path/file string to be appended
+#                         after the "#!" symbols in the first line of the
+#                         export file. Passing "" means deferred resolution.
+#                      <InputFile> is an object (.o) or an archive file (.a).
+#               1-Jul-1996  -- added header information
+#               Vladimir Marangozov
+#               28-Jun-1996 -- initial code
+#               Vladimir Marangozov           (
+# ==========================================================================
+# Variables
+shift; shift;
+automsg="Generated automatically by makexp_aix"
+notemsg="NOTE: lists _all_ global symbols defined in the above file(s)."
+# Create the export file and setup the header info
+echo "#!"$toAppendStr > $expFileName
+echo "*" >> $expFileName
+echo "* $automsg  (`date -u`)" >> $expFileName
+echo "*" >> $expFileName
+echo "* Base Directory: $curwdir" >> $expFileName
+echo "* Input File(s) : $inputFiles" >> $expFileName
+echo "*" >> $expFileName
+echo "* $notemsg" >> $expFileName
+echo "*" >> $expFileName
+# Extract the symbol list using 'nm' which produces quite
+# different output under AIX 4 than under AIX 3.2.5.
+# The following handles both versions by using a common flagset.
+# Here are some hidden tricks:
+# 1. Use /usr/ccs/bin/nm. Relevant to AIX 3.2.5 which has
+#    another version under /usr/ucb/bin/nm.
+# 2. Use the -B flag to have a standard BSD representation
+#    of the symbol list on both AIX 3.2.5 and AIX 4. The "-B"
+#    flag is missing in the AIX 3.2.5 online usage help of 'nm'.
+# 3. Use the -x flag to have a hex representation of the symbol
+#    values. This fills the leading whitespaces on AIX 4,
+#    thus simplifying the sed statement.
+# 4. Eliminate all entries except those with either "B", "D"
+#    or "T" key letters. We are interested only in the global
+#    (extern) BSS, DATA and TEXT symbols. With the same statement
+#    we eliminate object member lines relevant to AIX 4.
+# 5. Eliminate entries containing a dot. We can have a dot only
+#    as a symbol prefix, but such symbols are undefined externs.
+# 6. Eliminate everything including the key letter, so that we're
+#    left with just the symbol name.
+/usr/ccs/bin/nm -Bex $inputFiles			\
+| sed -e '/ [^BDT] /d' -e '/\./d' -e 's/.* [BDT] //'	\
+| sort | uniq >> $expFileName

File Modules/python.exp

+* =========================================================
+* This is the default export list of the python executable.
+* This file is used for the AIX platform ONLY.  It provides
+* a list of all variables in the python executable that are
+* "exported" -- that is, which may be used by any extension
+* modules that are created.  This file should be used as an
+* AIX "import" file when creating extension modules on that
+* platform.
+* This file was generated from the default configuration of
+* the distribution  (that is, from a build in which NONE of
+* the python Modules were built as shared libraries).
+* THIS FILE IS OVERWRITTEN anytime the python executable is
+* re-built using a  Modules/Setup  file that was customized
+* to call for the building of some or all python Modules as
+* shared libraries and with the definition of LINKCC having
+* been uncommented.   A new python.exp will be generated by
+* such a build;  it will list ONLY the global symbols which
+* are defined in the statically-bound modules and libraries.
+* =========================================================