Skip to content

Commit f75a2eb

Browse files
committed
Issue python#10656: Fix out-of-tree building on AIX
The ld_so_aix script and python.exp file are created in the build directory. Patch by Tristan Carel and Michael Haubenwallner.
1 parent 398bc76 commit f75a2eb

File tree

6 files changed

+9
-3
lines changed

6 files changed

+9
-3
lines changed

Makefile.pre.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ libainstall: all python-config
12321232
$(INSTALL_SCRIPT) $(srcdir)/Modules/makexp_aix \
12331233
$(DESTDIR)$(LIBPL)/makexp_aix; \
12341234
echo "$(LIBPL)/makexp_aix"; \
1235-
$(INSTALL_SCRIPT) $(srcdir)/Modules/ld_so_aix \
1235+
$(INSTALL_SCRIPT) Modules/ld_so_aix \
12361236
$(DESTDIR)$(LIBPL)/ld_so_aix; \
12371237
echo "$(LIBPL)/ld_so_aix"; \
12381238
echo; echo "See Misc/AIX-NOTES for details."; \

Misc/ACKS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ Arnaud Calmettes
209209
Daniel Calvelo
210210
Tony Campbell
211211
Brett Cannon
212+
Tristan Carel
212213
Mike Carlton
213214
Pierre Carrier
214215
Terry Carroll
@@ -541,6 +542,7 @@ Travis B. Hartwell
541542
Larry Hastings
542543
Tim Hatch
543544
Shane Hathaway
545+
Michael Haubenwallner
544546
Janko Hauser
545547
Rycharde Hawkes
546548
Ben Hayden

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ Tests
273273
Build
274274
-----
275275

276+
- Issue #10656: Fix out-of-tree building on AIX. Patch by Tristan Carel and
277+
Michael Haubenwallner.
278+
276279
- Issue #26359: Rename --with-optimiations to --enable-optimizations.
277280

278281
- Issue #28248: Update Windows build and OS X installers to use OpenSSL 1.0.2j.

Modules/ld_so_aix.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ if test ! -n "$*"; then
7070
fi
7171

7272
makexp=`dirname $0`/makexp_aix
73+
test -x "${makexp}" || makexp="@abs_srcdir@/makexp_aix"
7374

7475
# Check for existence of compiler.
7576
CC=$1; shift

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8551,7 +8551,7 @@ if test -z "$LDSHARED"
85518551
then
85528552
case $ac_sys_system/$ac_sys_release in
85538553
AIX*)
8554-
BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp"
8554+
BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
85558555
LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
85568556
;;
85578557
BeOS*)

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2124,7 +2124,7 @@ if test -z "$LDSHARED"
21242124
then
21252125
case $ac_sys_system/$ac_sys_release in
21262126
AIX*)
2127-
BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp"
2127+
BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
21282128
LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
21292129
;;
21302130
BeOS*)

0 commit comments

Comments
 (0)