-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unix: build _crypt extension module as shared
Modern Linux distributions are starting to remove `libcrypt.so.1` from the base disto. See #173 and #113 before it for more context. The `_crypt` extension module depends on `libcrypt.so.1` and our static linking of this extension is causing the full Python distribution to depend on `libcrypt.so.1`, causing our binaries to not load/run on these distributions. This commit adds support for building extension modules as shared libraries (the way CPython does things by default). We update our YAML config to build `_crypt` as a shared library.
- Loading branch information
Showing
8 changed files
with
96 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/Modules/makesetup b/Modules/makesetup | ||
index 1a767838c9..9f6d2f4396 100755 | ||
--- a/Modules/makesetup | ||
+++ b/Modules/makesetup | ||
@@ -253,6 +253,9 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' | | ||
done | ||
done | ||
|
||
+ # Deduplicate OBJS. | ||
+ OBJS=$(echo $OBJS | tr ' ' '\n' | sort -u | xargs) | ||
+ | ||
case $SHAREDMODS in | ||
'') ;; | ||
*) DEFS="SHAREDMODS=$SHAREDMODS$NL$DEFS";; |
25 changes: 0 additions & 25 deletions
25
cpython-unix/patch-remove-extension-module-shared-libraries-legacy.patch
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
cpython-unix/patch-remove-extension-module-shared-libraries.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters