#941346: Fix broken shared library build on AIX. Patch by Sebastien Sable, review by Antoine Pitrou.

This commit is contained in:
Georg Brandl 2011-02-15 15:44:51 +00:00
parent 08e278a562
commit 9a829bed97
5 changed files with 10 additions and 5 deletions

View file

@ -1256,7 +1256,7 @@ distclean: clobber
done done
-rm -f core Makefile Makefile.pre config.status \ -rm -f core Makefile Makefile.pre config.status \
Modules/Setup Modules/Setup.local Modules/Setup.config \ Modules/Setup Modules/Setup.local Modules/Setup.config \
Modules/ld_so_aix Misc/python.pc Modules/ld_so_aix Modules/python.exp Misc/python.pc
-rm -f python*-gdb.py -rm -f python*-gdb.py
-rm -f pybuilddir.txt -rm -f pybuilddir.txt
find $(srcdir) '(' -name '*.fdc' -o -name '*~' \ find $(srcdir) '(' -name '*.fdc' -o -name '*~' \

View file

@ -13,6 +13,11 @@ Core and Builtins
Library Library
------- -------
Build
-----
- Issue #941346: Fix broken shared library build on AIX.
What's New in Python 3.2 Release Candidate 3? What's New in Python 3.2 Release Candidate 3?
============================================= =============================================

View file

@ -131,7 +131,7 @@ do
shift shift
done done
if test "$objfile" = "libpython@VERSION@.so"; then if test "$objfile" = "libpython@VERSION@@ABIFLAGS@.so"; then
ldsocoremode="true" ldsocoremode="true"
fi fi

4
configure vendored
View file

@ -1,5 +1,5 @@
#! /bin/sh #! /bin/sh
# From configure.in Revision: 87698 . # From configure.in Revision: 88350 .
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.68 for python 3.2. # Generated by GNU Autoconf 2.68 for python 3.2.
# #
@ -7426,7 +7426,7 @@ if test -z "$LDSHARED"
then then
case $ac_sys_system/$ac_sys_release in case $ac_sys_system/$ac_sys_release in
AIX*) AIX*)
BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp -L\$(srcdir)" BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp"
LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
;; ;;
IRIX/5*) LDSHARED="ld -shared";; IRIX/5*) LDSHARED="ld -shared";;

View file

@ -1642,7 +1642,7 @@ if test -z "$LDSHARED"
then then
case $ac_sys_system/$ac_sys_release in case $ac_sys_system/$ac_sys_release in
AIX*) AIX*)
BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp -L\$(srcdir)" BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp"
LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
;; ;;
IRIX/5*) LDSHARED="ld -shared";; IRIX/5*) LDSHARED="ld -shared";;