logrotate: fix build with gcc 6
[buildroot-gz.git] / package / newt / 0001-Use-CC-instead-of-CPP-to-generate-.depend-files.patch
blob853472bfcdf54df4232a4d32f12ebb9ddd09c50b
1 From 65754effe16506a7a0a04069c8b6e1281811604d Mon Sep 17 00:00:00 2001
2 From: Samuel Martin <s.martin49@gmail.com>
3 Date: Sat, 10 Jan 2015 11:54:10 +0100
4 Subject: [PATCH newt 1/2] Use $(CC) instead of $(CPP) to generate .depend
5 files
7 Use $(CC) instead of $(CPP) to generate .depend file because '$(CPP)
8 -M' call does not support multiple input files. This avoid the
9 following error:
11 make[1]: Entering directory `/opt/br/output/build/newt-0.51.0'
12 /opt/br/output/host/usr/bin/arm-none-linux-gnueabi-cpp -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -M newt.c button.c form.c checkbox.c entry.c label.c listbox.c scrollbar.c textbox.c scale.c grid.c windows.c buttonbar.c checkboxtree.c > .depend
13 arm-none-linux-gnueabi-cpp: too many input files
14 make[1]: *** [depend] Error 1
16 Signed-off-by: Samuel Martin <s.martin49@gmail.com>
17 Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
18 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
19 ---
20 Makefile.in | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
23 diff --git a/Makefile.in b/Makefile.in
24 index 7989203..17853e0 100644
25 --- a/Makefile.in
26 +++ b/Makefile.in
27 @@ -121,7 +121,7 @@ clean:
28 $(SHAREDDIR)/*.o *.$(SOEXT)*
30 depend:
31 - $(CPP) $(CFLAGS) $(CPPFLAGS) -M $(SOURCES) > .depend
32 + $(CC) $(CFLAGS) $(CPPFLAGS) -M $(SOURCES) > .depend
34 $(SHAREDDIR):
35 mkdir -p $(SHAREDDIR)
36 --
37 2.1.0