let ipkg fail when a package file to be installed is not found
[openwrt.git] / openwrt / package / motion / patches / 02-honor_cppflags.patch
1 diff -ruN motion-3.2.5.1-old/Makefile.in motion-3.2.5.1-new/Makefile.in
2 --- motion-3.2.5.1-old/Makefile.in      2006-03-07 22:52:49.000000000 +0100
3 +++ motion-3.2.5.1-new/Makefile.in      2006-03-27 22:04:34.000000000 +0200
4 @@ -32,6 +32,7 @@
5  ################################################################################
6  CFLAGS       = @CFLAGS@ -Wall -DVERSION=\"$(VERSION)\" -D_REENTRANT \
7                -Dsysconfdir=\"$(sysconfdir)\"
8 +CPPFLAGS     = @CPPFLAGS@
9  LDFLAGS      = @LDFLAGS@
10  LIBS         = @LIBS@ 
11  VIDEO_OBJ    = @VIDEO@
12 @@ -115,7 +116,7 @@
13  ################################################################################
14  $(DEPEND_FILE): *.h $(SRC)
15         @echo "Generating dependencies, please wait..."
16 -       @$(CC) $(CFLAGS) -M $(SRC) > .tmp
17 +       @$(CC) $(CFLAGS) $(CPPFLAGS) -M $(SRC) > .tmp
18         @mv -f .tmp $(DEPEND_FILE)
19         @echo
20