File: fix_cppflags

package info (click to toggle)
jhead 1%3A3.06.0.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,548 kB
  • sloc: ansic: 4,249; sh: 145; python: 30; makefile: 29
file content (21 lines) | stat: -rw-r--r-- 629 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Index: jhead/makefile
===================================================================
--- jhead.orig/makefile
+++ jhead/makefile
@@ -4,6 +4,7 @@
 OBJ=obj
 SRC=.
 CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
+CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
 LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
 
 all: objdir jhead
@@ -15,7 +16,7 @@ objs = $(OBJ)/jhead.o $(OBJ)/jpgfile.o $
 	$(OBJ)/exif.o $(OBJ)/iptc.o $(OBJ)/gpsinfo.o $(OBJ)/makernote.o 
 
 $(OBJ)/%.o:$(SRC)/%.c objdir
-	${CC} $(CFLAGS) -c $< -o $@
+	${CC} $(CFLAGS) $(CPPFLAGS) -c $< -o $@
 
 jhead: $(objs) jhead.h
 	${CC} $(LDFLAGS) -o jhead $(objs) -lm