@@ -700,6 +700,8 @@ ARFLAGS
700700ac_ct_AR
701701AR
702702GNULD
703+ EXPORTSFROM
704+ EXPORTSYMS
703705LINKCC
704706LDVERSION
705707RUNSHARED
@@ -5799,22 +5801,13 @@ LDVERSION="$VERSION"
57995801# If CXX is set, and if it is needed to link a main function that was
58005802# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
58015803# python might then depend on the C++ runtime
5802- # This is altered for AIX in order to build the export list before
5803- # linking.
58045804
58055805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
58065806$as_echo_n "checking LINKCC... " >&6; }
58075807if test -z "$LINKCC"
58085808then
58095809 LINKCC='$(PURIFY) $(MAINCC)'
58105810 case $ac_sys_system in
5811- AIX* )
5812- exp_extra=" \"\" "
5813- if test $ac_sys_release -ge 5 -o \
5814- $ac_sys_release -eq 4 -a ` uname -r` -ge 2 ; then
5815- exp_extra=" ."
5816- fi
5817- LINKCC=" \$ (srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$ (LIBRARY); $LINKCC " ;;
58185811 QNX*)
58195812 # qcc must be used because the other compilers do not
58205813 # support -N.
@@ -5824,6 +5817,26 @@ fi
58245817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
58255818$as_echo "$LINKCC" >&6; }
58265819
5820+ # EXPORTSYMS holds the list of exported symbols for AIX.
5821+ # EXPORTSFROM holds the module name exporting symbols on AIX.
5822+ EXPORTSYMS=
5823+ EXPORTSFROM=
5824+
5825+
5826+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking EXPORTSYMS" >&5
5827+ $as_echo_n "checking EXPORTSYMS... " >&6; }
5828+ case $ac_sys_system in
5829+ AIX*)
5830+ EXPORTSYMS="Modules/python.exp"
5831+ if test $ac_sys_release -ge 5 -o \
5832+ $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
5833+ EXPORTSFROM=. # the main executable
5834+ fi
5835+ ;;
5836+ esac
5837+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPORTSYMS" >&5
5838+ $as_echo "$EXPORTSYMS" >&6; }
5839+
58275840# GNULD is set to "yes" if the GNU linker is used. If this goes wrong
58285841# make sure we default having it set to "no": this is used by
58295842# distutils.unixccompiler to know if it should add --enable-new-dtags
0 commit comments