summarylogtreecommitdiffstats
path: root/001-mingw-pdcurses-3.6-build.patch
blob: cfc8d3220dbefc10e72b938fd85f62cb874355e1 (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
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)