File: 02-build-flags.patch

package info (click to toggle)
donkey 0.5-21
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 336 kB
  • ctags: 428
  • sloc: ansic: 1,965; makefile: 43; sh: 29
file content (21 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Honor CPPFLAGS and LDFLAGS.
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2010-06-21

--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -17,12 +17,12 @@
 LIBS	= @LIBS@
 
 .c.o:
-	$(CC) -c $(CFLAGS) $(DEFS) $<
+	$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $<
 
 all:	$(PROG)
 
 $(PROG):	$(OBJS)
-	$(CC) -o $(PROG) $(CFLAGS) $(OBJS) $(LIBS)
+	$(CC) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIBS)
 
 install:
 	cp $(PROG) $(BINDIR)