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

Skip to content

Commit c0f1e77

Browse files
committed
Patch #553702: Cygwin make install patch
This patch fixes make install for Cygwin. Specifically, it reverts to the previous behavior: o install libpython$(VERSION)$(SO) in $(BINDIR) o install $(LDLIBRARY) in $(LIBPL) It also begins to remove Cygwin's dependency on $(DLLLIBRARY) which I hope to take advantage of when I attempt to make Cygwin as similar as possible to the other Unix platforms (in other patches). I tested this patch under Red Hat Linux 7.1 without any ill effects. BTW, I'm not the happiest using the following test for Cygwin: test "$(SO)" = .dll I'm willing to update the patch to use: case "$(MACHDEP)" in cygwin* instead, but IMO that will look uglier.
1 parent 56796f6 commit c0f1e77

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

Makefile.pre.in

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -559,11 +559,11 @@ altbininstall: $(BUILDPYTHON)
559559
done
560560
$(INSTALL_PROGRAM) $(BUILDPYTHON) $(BINDIR)/python$(VERSION)$(EXE)
561561
if test -f libpython$(VERSION)$(SO); then \
562-
$(INSTALL_SHARED) libpython$(VERSION)$(SO) $(LIBDIR)/$(INSTSONAME); \
563-
else true; \
564-
fi
565-
if test -f "$(DLLLIBRARY)"; then \
566-
$(INSTALL_SHARED) $(DLLLIBRARY) $(BINDIR); \
562+
if test "$(SO)" = .dll; then \
563+
$(INSTALL_SHARED) libpython$(VERSION)$(SO) $(BINDIR); \
564+
else \
565+
$(INSTALL_SHARED) libpython$(VERSION)$(SO) $(LIBDIR)/$(INSTSONAME); \
566+
fi; \
567567
else true; \
568568
fi
569569

@@ -690,8 +690,12 @@ libainstall: all
690690
done
691691
@if test -d $(LIBRARY); then :; else \
692692
if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
693-
$(INSTALL_DATA) $(LIBRARY) $(LIBPL)/$(LIBRARY) ; \
694-
$(RANLIB) $(LIBPL)/$(LIBRARY) ; \
693+
if test "$(SO)" = .dll; then \
694+
$(INSTALL_DATA) $(LDLIBRARY) $(LIBPL) ; \
695+
else \
696+
$(INSTALL_DATA) $(LIBRARY) $(LIBPL)/$(LIBRARY) ; \
697+
$(RANLIB) $(LIBPL)/$(LIBRARY) ; \
698+
fi; \
695699
else \
696700
echo Skip install of $(LIBRARY) - use make frameworkinstall; \
697701
fi; \

0 commit comments

Comments
 (0)