Respect DESTDIR for lib-dynload directory in py 2.0.1

This commit is contained in:
fosslinux 2024-01-24 14:36:54 +11:00
parent 76217c6b0d
commit 1665723b70
1 changed files with 15 additions and 0 deletions

View File

@ -204,3 +204,18 @@ Python 2.0 does not support DESTDIR, so add it in.
fi; \
done
@@ -249,10 +249,10 @@
$(DESTSHARED):
@for i in $(DESTDIRS); \
do \
- if test ! -d $$i; then \
- echo "Creating directory $$i"; \
- mkdir $$i; \
- chmod 755 $$i; \
+ if test ! -d $(DESTDIR)$$i; then \
+ echo "Creating directory $(DESTDIR)$$i"; \
+ mkdir $(DESTDIR)$$i; \
+ chmod 755 $(DESTDIR)$$i; \
else true; \
fi; \
done