File: makefile.patch

package info (click to toggle)
icom 20120228-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,584 kB
  • sloc: ansic: 4,070; cpp: 3,322; xml: 112; csh: 64; makefile: 39; awk: 37
file content (24 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Fix Makefile for build hardening
--- a/Makefile
+++ b/Makefile
@@ -9,9 +9,9 @@
 DEFS=
 #
 INCL= -I../include
-CFLAGS= $(COPTS) $(DEFS) $(INCL)
+CFLAGS+= $(COPTS) $(DEFS) $(INCL)
 CC= $(COMPILER)
-LIB= /lib/libm.so
+LIB= -lm
 #
 SOURCE= icom.c radio.c packet.c tables.c
 OBJS= icom.o radio.o packet.o tables.o
@@ -20,7 +20,7 @@
 all:	$(PROGRAM)
 
 icom:	$(OBJS)
-	$(CC) $(COPTS) -o $@ $(OBJS) $(LIB)
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIB)
 
 install: $(BINDIR)/$(PROGRAM)