mirror of
https://github.com/openwrt/telephony.git
synced 2025-12-21 19:14:34 +04:00
Add 2 patch fixing compilation warning (now error) for implicit declaration and incompatible pointer type. Refresh all affected patch. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
24 lines
620 B
Diff
24 lines
620 B
Diff
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -1,4 +1,5 @@
|
|
-CFLAGS= -Iiax/ -Igsm/inc -DIAXC_IAX2 -DLIBIAX -g -DPOSIXSLEEP -DLINUX -O2
|
|
+OFLAGS= -02 -g
|
|
+CFLAGS= -Iiax/ -Igsm/inc $(CPPFLAGS) -DIAXC_IAX2 -DLIBIAX -DPOSIXSLEEP -DLINUX $(OFLAGS)
|
|
SYSLIBS=-lpthread -lm -lbluetooth
|
|
|
|
|
|
@@ -32,11 +33,10 @@ OBJS=\
|
|
miax.o
|
|
|
|
all: $(OBJS)
|
|
- gcc $(OBJS) $(CFLAGS) $(SYSLIBS) -o miax
|
|
- cp miax /bin/miax
|
|
+ $(CC) $(OBJS) $(CFLAGS) $(LDFLAGS) $(SYSLIBS) -o miax
|
|
|
|
static: $(OBJS) bluetooth.o
|
|
- gcc $(OBJS) $(CFLAGS) $(SYSLIBS) -static -o miax
|
|
+ $(CC) $(OBJS) $(CFLAGS) $(LDFLAGS) $(SYSLIBS) -static -o miax
|
|
|
|
clean:
|
|
rm -f $(OBJS) miax
|