add rebase of python dll before trying to use python

This commit is contained in:
Jeremy Drake
2020-08-14 11:41:25 -07:00
parent 3e5f58cf3b
commit 3ed5c8dfd1
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
--- Python-3.8.5/Makefile.pre.in.orig 2020-08-10 16:49:23.697127200 -0700
+++ Python-3.8.5/Makefile.pre.in 2020-08-10 16:51:30.546101400 -0700
@@ -667,6 +667,10 @@
if test -n "$(DLLLIBRARY)"; then \
$(LDSHARED) -Wl,--out-implib=$@ -o $(DLLLIBRARY) $^ \
$(LIBS) $(MODLIBS) $(SYSLIBS); \
+ if [[ `uname -m` == i?86 ]]; then \
+ rebase -sO $(DLLLIBRARY); \
+ else true; \
+ fi; \
else true; \
fi