8000 bpo-40684: Fix make install for platlibdir=lib64 (GH-20736) · python/cpython@51ae31e · GitHub
[go: up one dir, main page]

Skip to content

Commit 51ae31e

Browse files
authored
bpo-40684: Fix make install for platlibdir=lib64 (GH-20736)
"make install" now uses the PLATLIBDIR variable for the destination lib-dynload/ directory when ./configure --with-platlibdir is used. Update --with-platlibdir comment in configure.
1 parent 3231883 commit 51ae31e

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

Makefile.pre.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ SCRIPTDIR= $(prefix)/$(PLATLIBDIR)
148148
ABIFLAGS= @ABIFLAGS@
149149

150150
# Detailed destination directories
151-
BINLIBDEST= $(LIBDIR)/python$(VERSION)
151+
BINLIBDEST= @BINLIBDEST@
152152
LIBDEST= $(SCRIPTDIR)/python$(VERSION)
153153
INCLUDEPY= $(INCLUDEDIR)/python$(LDVERSION)
154154
CONFINCLUDEPY= $(CONFINCLUDEDIR)/python$(LDVERSION)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
``make install`` now uses the ``PLATLIBDIR`` variable for the destination
2+
``lib-dynload/`` directory when ``./configure --with-platlibdir`` is used.

configure

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ THREADHEADERS
632632
LIBPL
633633
PY_ENABLE_SHARED
634634
PLATLIBDIR
635+
BINLIBDEST
635636
LIBPYTHON
636637
EXT_SUFFIX
637638
ALT_SOABI
@@ -15334,7 +15335,11 @@ else
1533415335
fi
1533515336

1533615337

15337-
# Check for --with-libdir-name
15338+
15339+
BINLIBDEST='$(LIBDIR)/python$(VERSION)'
15340+
15341+
15342+
# Check for --with-platlibdir
1533815343
# /usr/$LIDIRNAME/python$VERSION
1533915344

1534015345
PLATLIBDIR="lib"
@@ -15353,6 +15358,7 @@ then
1535315358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1535415359
$as_echo "yes" >&6; }
1535515360
PLATLIBDIR="$withval"
15361+
BINLIBDEST='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)'
1535615362
else
1535715363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1535815364
$as_echo "no" >&6; }

configure.ac

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4770,7 +4770,11 @@ else
47704770
fi
47714771

47724772

4773-
# Check for --with-libdir-name
4773+
AC_SUBST(BINLIBDEST)
4774+
BINLIBDEST='$(LIBDIR)/python$(VERSION)'
4775+
4776+
4777+
# Check for --with-platlibdir
47744778
# /usr/$LIDIRNAME/python$VERSION
47754779
AC_SUBST(PLATLIBDIR)
47764780
PLATLIBDIR="lib"
@@ -4787,6 +4791,7 @@ if test -n "$withval" -a "$withval" != yes -a "$withval" != no
47874791
then
47884792
AC_MSG_RESULT(yes)
47894793
PLATLIBDIR="$withval"
4794+
BINLIBDEST='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)'
47904795
else
47914796
AC_MSG_RESULT(no)
47924797
fi],

0 commit comments

Comments
 (0)
0