-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.diff
43 lines (38 loc) · 1.24 KB
/
Makefile.diff
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
diff --git a/Makefile b/Makefile
index fec7449..c10d69d 100644
--- a/Makefile
+++ b/Makefile
@@ -36,7 +36,7 @@ WINE := wine
#
CFLAGS := \
- -DFD_SETSIZE=2048 \
+ -DFD_SETSIZE=4096 \
-g -gstabs \
-isystem $(PWD)/openssl/include
@@ -47,7 +47,7 @@ LFLAGS := \
-L$(PWD)/rem
# workaround for linker order (note, the order is important)
-LIBS := -lrem -lssl -lcrypto -lwsock32 -lws2_32 -liphlpapi -lwinmm \
+LIBS += -lrem -lssl -lcrypto -lwsock32 -lws2_32 -liphlpapi -lwinmm \
-lgdi32 -lcrypt32 \
-lstrmiids -lole32 -loleaut32 -static -lstdc++
@@ -55,8 +55,8 @@ LIBS := -lrem -lssl -lcrypto -lwsock32 -lws2_32 -liphlpapi -lwinmm \
COMMON_FLAGS := CC=$(CC) \
CXX=$(CXX) \
RANLIB=$(RANLIB) \
- EXTRA_CFLAGS="$(CFLAGS)" \
- EXTRA_LFLAGS="$(LFLAGS)" \
+ EXTRA_CFLAGS+="$(CFLAGS)" \
+ EXTRA_LFLAGS+="$(LFLAGS)" \
LIBS="$(LIBS)" \
SYSROOT=$(SYSROOT) \
SYSROOT_ALT= \
@@ -138,7 +138,8 @@ baresip: Makefile librem.a libre.a
make selftest.exe baresip.exe -C baresip $(COMMON_FLAGS) STATIC=1 \
LIBRE_SO=$(PWD)/re LIBREM_PATH=$(PWD)/rem \
EXTRA_MODULES="$(EXTRA_MODULES)"
- cd baresip && $(WINE) selftest.exe && cd ..
+ cp baresip/*.exe $(PREFIX)
+ cd $(PREFIX) && $(WINE) selftest.exe && cd ..
.PHONY: openssl
openssl: