packages/Xorg/lib/fltk2/patches/002-honor-cppflags
mb 572dd50f92 fltk2: uClibc-0.9.31 fixes
git-svn-id: svn://svn.openwrt.org/openwrt/packages@23812 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-03 01:27:59 +00:00

27 lines
743 B
Plaintext

Index: fltk2-r6671/makeinclude.in
===================================================================
--- fltk2-r6671.orig/makeinclude.in 2010-11-03 02:16:42.106000002 +0100
+++ fltk2-r6671/makeinclude.in 2010-11-03 02:16:43.163002267 +0100
@@ -54,6 +54,7 @@
# flags for C++ compiler:
OPTIM = @OPTIM@
+CPPFLAGS = @CPPFLAGS@
CFLAGS = $(OPTIM) @CFLAGS@
CXXFLAGS = $(OPTIM) @CXXFLAGS@
@@ -124,11 +125,11 @@
.c.o:
echo Compiling $<...
- $(CC) -I.. -I../fltk/compat $(CFLAGS) -c $<
+ $(CC) $(CPPFLAGS) -I.. -I../fltk/compat $(CFLAGS) -c $<
.cxx.o:
echo Compiling $<...
- $(CXX) -I.. -I../fltk/compat $(CXXFLAGS) -c $<
+ $(CXX) $(CPPFLAGS) -I.. -I../fltk/compat $(CXXFLAGS) -c $<
.man.0 .man.1 .man.3:
echo Formatting $<...