0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-09 22:45:33 +00:00
Files
termux-packages/packages/python/0010-link-modules-against-libpython.patch
2024-10-06 17:06:14 +02:00

24 lines
601 B
Diff

Borrowed from https://github.com/msys2-contrib/cpython-mingw/commit/c4c698ec8fd7413068fce2de966938b3f8462de8
--- a/Modules/makesetup
+++ b/Modules/makesetup
@@ -97,6 +97,9 @@
ExtraLibDir='$(LIBPL)'
fi
ExtraLibs="-L$ExtraLibDir -lpython\$(LDVERSION)";;
+Linux*)
+ ExtraLibs='$(BLDLIBRARY)'
+ ExtraLibDepends='$(LIBRARY_DEPS)';;
esac
# Main loop
@@ -285,7 +288,7 @@
BUILT_SHARED="$BUILT_SHARED $mod"
;;
esac
- rule="$file: $objs"
+ rule="$file: $objs $ExtraLibDepends"
rule="$rule; \$(BLDSHARED) $objs $libs $ExtraLibs -o $file"
echo "$rule" >>$rulesf
done