summarylogtreecommitdiffstats
path: root/001-mingw-pdcurses-4.1.0-build.patch
blob: 696c96092ab7ed1b608de86bbf16b2429a527262 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
diff -Naur PDCursesMod-4.3.5.orig/wincon/Makefile PDCursesMod-4.3.5/wincon/Makefile
--- PDCursesMod-4.3.5.orig/wincon/Makefile	2022-11-29 07:10:34.152931789 -0500
+++ PDCursesMod-4.3.5/wincon/Makefile	2022-11-29 07:15:02.644861393 -0500
@@ -101,10 +101,11 @@
 DLLNAME = pdcurses
 
 ifeq ($(DLL),Y)
+	LIBARCHIVE = libpdcurses.dll.a
 	CFLAGS += -DPDC_DLL_BUILD
 	LIBEXE = $(CC)
-	LIBFLAGS = -Wl,--out-implib,$(LIBNAME).a -shared -o
-	LIBCURSES = $(DLLNAME).dll
+	LIBFLAGS = -Wl,--out-implib,$(LIBARCHIVE) -shared -o
+	LIBCURSES = libpdcurses.dll
 	LIBDEPS = $(LIBOBJS) $(PDCOBJS)
 	LIBSADDED = -lwinmm
 	EXELIBS =
@@ -116,7 +117,8 @@
 else
 	LIBFLAGS = rv
 endif
-	LIBCURSES = $(LIBNAME).a
+	LIBARCHIVE = libpdcurses.a
+	LIBCURSES = $(LIBARCHIVE)
 	LIBDEPS = $(LIBOBJS) $(PDCOBJS)
 	LIBSADDED =
 	EXELIBS = -lwinmm
@@ -142,7 +144,7 @@
 
 $(LIBCURSES) : $(LIBDEPS)
 	$(LIBEXE) $(LIBFLAGS) $@ $? $(LIBSADDED)
-	$(CP) $(LIBNAME).a panel.a
+	$(CP) $(LIBARCHIVE) libpanel.a
 
 $(LIBOBJS) $(PDCOBJS) : $(PDCURSES_HEADERS)
 $(PDCOBJS) : $(PDCURSES_WIN_H)
diff -Naur PDCursesMod-4.3.5.orig/wingui/Makefile PDCursesMod-4.3.5/wingui/Makefile
--- PDCursesMod-4.3.5.orig/wingui/Makefile	2022-11-29 07:10:34.156265146 -0500
+++ PDCursesMod-4.3.5/wingui/Makefile	2022-11-29 07:16:20.368757254 -0500
@@ -99,8 +99,9 @@
 ifeq ($(DLL),Y)
 	CFLAGS += -DPDC_DLL_BUILD
 	LIBEXE = $(CC)
-	LIBFLAGS = -Wl,--out-implib,$(LIBNAME).a -static-libgcc -shared -o
-	LIBCURSES = $(DLLNAME).dll
+	LIBARCHIVE = libpdcurses.dll.a
+	LIBFLAGS = -Wl,--out-implib,$(LIBARCHIVE) -shared -o
+	LIBCURSES = libpdcurses.dll
 	LIBDEPS = $(LIBOBJS) $(PDCOBJS)
 	LIBSADDED = -lgdi32 -lcomdlg32 -lwinmm
 	EXELIBS =
@@ -112,7 +113,8 @@
 else
 	LIBFLAGS = rv
 endif
-	LIBCURSES = $(LIBNAME).a
+	LIBARCHIVE = libpdcurses.a
+	LIBCURSES = $(LIBARCHIVE)
 	LIBDEPS = $(LIBOBJS) $(PDCOBJS)
 	LIBSADDED =
 	EXELIBS = -lgdi32 -lcomdlg32 -lwinmm
@@ -138,7 +140,7 @@
 
 $(LIBCURSES) : $(LIBDEPS)
 	$(LIBEXE) $(LIBFLAGS) $@ $? $(LIBSADDED)
-	$(CP) $(LIBNAME).a panel.a
+	$(CP) $(LIBARCHIVE) libpanel.a
 
 $(LIBOBJS) $(PDCOBJS) : $(PDCURSES_HEADERS)
 $(PDCOBJS) : $(PDCURSES_WIN_H)