packages/multimedia/motion/patches/002-honor_cppflags.patch
juhosg 6d2dc2371e [packages] multimedia/motion: update to 3.2.9
git-svn-id: svn://svn.openwrt.org/openwrt/packages@10155 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-01-09 20:02:34 +00:00

22 lines
817 B
Diff

Index: motion-3.2.9/Makefile.in
===================================================================
--- motion-3.2.9.orig/Makefile.in
+++ motion-3.2.9/Makefile.in
@@ -33,6 +33,7 @@ examplesdir = $(docdir)/examples
################################################################################
CFLAGS = @CFLAGS@ -Wall -DVERSION=\"$(VERSION)\" -D_REENTRANT \
-Dsysconfdir=\"$(sysconfdir)\"
+CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
VIDEO_OBJ = @VIDEO@
@@ -120,7 +121,7 @@ endif
################################################################################
$(DEPEND_FILE): *.h $(SRC)
@echo "Generating dependencies, please wait..."
- @$(CC) $(CFLAGS) -M $(SRC) > .tmp
+ @$(CC) $(CFLAGS) $(CPPFLAGS) -M $(SRC) > .tmp
@mv -f .tmp $(DEPEND_FILE)
@echo