aboutsummaryrefslogtreecommitdiffstats
path: root/package/usb_modeswitch/usb_modeswitch-1.0.7-build-system-fix.patch
blob: 71dbc7a6d1d2a451c1c0b2d164162994e96c79a0 (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
---
 Makefile |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

Index: usb_modeswitch-1.0.7/Makefile
===================================================================
--- usb_modeswitch-1.0.7.orig/Makefile
+++ usb_modeswitch-1.0.7/Makefile
@@ -1,8 +1,8 @@
 PROG        = usb_modeswitch
 VERS        = 1.0.7
 STRIP	    = strip
-CC          = gcc
-CCFLAGS     = -l usb -Wall
+CC          ?= gcc
+CFLAGS      += -l usb -Wall
 RM          = /bin/rm -f
 OBJS        = usb_modeswitch.c
 PREFIX	    = $(DESTDIR)/usr
@@ -12,8 +12,7 @@
 .PHONY:     clean
 all:        $(PROG)
 $(PROG):    $(OBJS)
-	      $(CC) $(CCFLAGS) -o $(PROG) $(OBJS)
-	      $(STRIP) $(PROG)
+	      $(CC) $(CFLAGS) -o $(PROG) $(OBJS)
 
 clean:
 	      $(RM) ./usb_modeswitch