diff options
Diffstat (limited to '001-mingw-pdcurses-4.1.0-build.patch')
-rw-r--r-- | 001-mingw-pdcurses-4.1.0-build.patch | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/001-mingw-pdcurses-4.1.0-build.patch b/001-mingw-pdcurses-4.1.0-build.patch new file mode 100644 index 000000000000..2224b9ce2817 --- /dev/null +++ b/001-mingw-pdcurses-4.1.0-build.patch @@ -0,0 +1,68 @@ +diff -Naur pdcurses-4.1.0-orig/wincon/Makefile.mng pdcurses-4.1.0/wincon/Makefile.mng +--- pdcurses-4.1.0-orig/wincon/Makefile.mng 2019-05-09 02:27:41.000000000 +0300 ++++ pdcurses-4.1.0/wincon/Makefile.mng 2019-05-28 08:49:28.054006700 +0300 +@@ -100,8 +100,9 @@ + ifeq ($(DLL),Y) + CFLAGS += -DPDC_DLL_BUILD + LIBEXE = $(PREFIX)gcc +- LIBFLAGS = -Wl,--out-implib,pdcurses.a -shared -o +- LIBCURSES = pdcurses.dll ++ LIBARCHIVE = libpdcurses.dll.a ++ LIBFLAGS = -Wl,--out-implib,$(LIBARCHIVE) -shared -o ++ LIBCURSES = libpdcurses.dll + LIBDEPS = $(LIBOBJS) $(PDCOBJS) + LIBSADDED = + EXELIBS = +@@ -113,7 +114,8 @@ + else + LIBFLAGS = rv + endif +- LIBCURSES = pdcurses.a ++ LIBARCHIVE = libpdcurses.a ++ LIBCURSES = $(LIBARCHIVE) + LIBDEPS = $(LIBOBJS) $(PDCOBJS) + LIBSADDED = + EXELIBS = +@@ -139,7 +141,7 @@ + + $(LIBCURSES) : $(LIBDEPS) + $(LIBEXE) $(LIBFLAGS) $@ $? $(LIBSADDED) +- $(CP) pdcurses.a panel.a ++ $(CP) $(LIBARCHIVE) libpanel.a + + $(LIBOBJS) $(PDCOBJS) : $(PDCURSES_HEADERS) + $(PDCOBJS) : $(PDCURSES_WIN_H) +diff -Naur pdcurses-4.1.0-orig/wingui/Makefile.mng pdcurses-4.1.0/wingui/Makefile.mng +--- pdcurses-4.1.0-orig/wingui/Makefile.mng 2019-05-09 02:27:41.000000000 +0300 ++++ pdcurses-4.1.0/wingui/Makefile.mng 2019-05-28 08:48:33.963930900 +0300 +@@ -98,8 +98,9 @@ + ifeq ($(DLL),Y) + CFLAGS += -DPDC_DLL_BUILD + LIBEXE = $(CC) +- LIBFLAGS = -Wl,--out-implib,pdcurses.a -shared -o +- LIBCURSES = pdcurses.dll ++ LIBARCHIVE = libpdcurses.dll.a ++ LIBFLAGS = -Wl,--out-implib,$(LIBARCHIVE) -shared -o ++ LIBCURSES = libpdcurses.dll + LIBDEPS = $(LIBOBJS) $(PDCOBJS) + LIBSADDED = -lgdi32 -lcomdlg32 + EXELIBS = +@@ -111,7 +112,8 @@ + else + LIBFLAGS = rv + endif +- LIBCURSES = pdcurses.a ++ LIBARCHIVE = libpdcurses.a ++ LIBCURSES = $(LIBARCHIVE) + LIBDEPS = $(LIBOBJS) $(PDCOBJS) + LIBSADDED = + EXELIBS = -lgdi32 -lcomdlg32 +@@ -137,7 +139,7 @@ + + $(LIBCURSES) : $(LIBDEPS) + $(LIBEXE) $(LIBFLAGS) $@ $? $(LIBSADDED) +- $(CP) pdcurses.a panel.a ++ $(CP) $(LIBARCHIVE) libpanel.a + + $(LIBOBJS) $(PDCOBJS) : $(PDCURSES_HEADERS) + $(PDCOBJS) : $(PDCURSES_WIN_H) |