Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6506967

Browse files
committed
Document that --enable-shared puts PIC objects into the static libpython.
Fixes #589429.
1 parent d64845d commit 6506967

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

README

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,13 @@ Building a shared libpython
642642
Starting with Python 2.3, the majority of the interpreter can be built
643643
into a shared library, which can then be used by the interpreter
644644
executable, and by applications embedding Python. To enable this feature,
645-
configure with --enable-shared.
645+
configure with --enable-shared.
646+
647+
If you do so, a static library will be created in addition to the
648+
shared library, which uses the same object files as the shared library
649+
In particular, the library likely object files using
650+
position-independent code (PIC) if PIC flags are needed for the shared
651+
library.
646652

647653

648654
Configuring additional built-in modules

0 commit comments

Comments
 (0)