summarylogtreecommitdiffstats
path: root/001-mingw-pdcurses-3.6-build.patch
diff options
context:
space:
mode:
Diffstat (limited to '001-mingw-pdcurses-3.6-build.patch')
-rw-r--r--001-mingw-pdcurses-3.6-build.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/001-mingw-pdcurses-3.6-build.patch b/001-mingw-pdcurses-3.6-build.patch
new file mode 100644
index 000000000000..cfc8d3220dbe
--- /dev/null
+++ b/001-mingw-pdcurses-3.6-build.patch
@@ -0,0 +1,42 @@
+diff -Naur wincon/Makefile.orig wincon/Makefile
+--- wincon/Makefile.orig 2018-02-13 14:46:44.000000000 +0100
++++ wincon/Makefile 2018-04-05 18:21:09.162821700 +0200
+@@ -26,6 +26,9 @@
+ PDCURSES_WIN_H = $(osdir)/pdcwin.h
+
+ CC = gcc
++AR = ar
++STRIP = strip
++LINK = gcc
+
+ ifeq ($(DEBUG),Y)
+ CFLAGS = -g -Wall -DPDCDEBUG
+@@ -45,17 +48,15 @@
+ CFLAGS += -DPDC_FORCE_UTF8
+ endif
+
+-LINK = gcc
+-
+ ifeq ($(DLL),Y)
+ CFLAGS += -DPDC_DLL_BUILD
+- LIBEXE = gcc
++ LIBEXE = $(CC)
+ LIBFLAGS = -Wl,--out-implib,pdcurses.a -shared -o
+ LIBCURSES = pdcurses.dll
+ LIBDEPS = $(LIBOBJS) $(PDCOBJS)
+ CLEAN = $(LIBCURSES) *.a
+ else
+- LIBEXE = ar
++ LIBEXE = $(AR)
+ LIBFLAGS = rcv
+ LIBCURSES = pdcurses.a
+ LIBDEPS = $(LIBOBJS) $(PDCOBJS)
+@@ -75,7 +76,7 @@
+
+ demos: $(DEMOS)
+ ifneq ($(DEBUG),Y)
+- strip *.exe
++ $(STRIP) *.exe
+ endif
+
+ $(LIBCURSES) : $(LIBDEPS)