This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Static library (libpythonX.Y.a) installed in incorrect location
Type: behavior Stage: patch review
Components: Installation Versions: Python 3.10, Python 3.9, Python 3.8
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Arfrever, barry, loewis
Priority: normal Keywords: patch

Created on 2009-05-25 05:26 by Arfrever, last changed 2022-04-11 14:56 by admin.

File name Uploaded Description Edit
python-2.6.2-fix_static_library_location.patch Arfrever, 2009-05-25 05:26 python-2.6.2-fix_static_library_location.patch
Messages (3)
msg88302 - (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) * (Python triager) Date: 2009-05-25 05:26
When Python has been configured without --enable-shared option, then
`make install` installs $(LIBDIR)/libpythonX.Y.a and
$(LIBDIR)/pythonX.Y/config/libpythonX.Y.a (these files are identical).

When Python has been configured with --enable-shared option, then `make
install` installs $(LIBDIR)/ and
It is inconsistent and causes using of static library instead of shared
library when a program is linked using "-L$(LIBDIR)/pythonX.Y/config -
(It was reported at

I suggest to install libpythonX.Y.a only in $(LIBDIR).
msg112176 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2010-07-31 18:01
Can someone from the build team please review the attached patch, thanks.
msg144116 - (view) Author: Dirkjan Ochtman (djc) * (Python committer) Date: 2011-09-16 09:21
It would be nice to get some feedback on this.
Date User Action Args
2022-04-11 14:56:49adminsetgithub: 50353
2020-11-11 12:07:02djcsetnosy: - djc
2020-11-11 00:34:48iritkatrielsetversions: + Python 3.8, Python 3.9, Python 3.10, - Python 3.1, Python 2.7, Python 3.2
2014-02-03 19:15:22BreamoreBoysetnosy: - BreamoreBoy
2011-09-16 09:21:21djcsetmessages: + msg144116
2010-10-28 13:50:24pitrousetnosy: + loewis, barry
2010-10-28 13:49:03djcsetnosy: + djc
2010-07-31 18:01:47BreamoreBoysetversions: + Python 3.2, - Python 2.6, Python 2.5, Python 2.4, Python 3.0
nosy: + BreamoreBoy

messages: + msg112176

type: behavior
stage: patch review
2009-05-25 05:26:12Arfrevercreate