• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/newt/newt-fix-makefile.patch
Samuel MartinSamuel Martin committed a34896a8d7e11 Oct 2012
Raw file
Source viewDiff to previous
 
1
Fix Makefile.in
2
​
3
* Remove -Os from the CFLAGS (already handled by Buildroot)
4
* Use $(CC) instead of $(CPP) to generate .depend file because
5
  '$(CPP) -M' call does not support multiple input files.
6
  This avoid the following error:
7
​
8
make[1]: Entering directory `/opt/br/output/build/newt-0.51.0'
9
/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
10
arm-none-linux-gnueabi-cpp: too many input files
11
make[1]: *** [depend] Error 1
12
make[1]: Leaving directory 
13
`/opt/br/output/build/newt-0.51.0'
14
make: *** 
15
[/opt/br/output/build/newt-0.51.0/.stamp_built] Error 2
16
​
17
​
18
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
19
​
20
---
21
Index: newt-0.51.0/Makefile.in
22
===================================================================
23
--- newt-0.51.0.orig/Makefile.in    2012-10-10 22:43:42.042318041 +0200
24
+++ newt-0.51.0/Makefile.in 2012-10-11 21:25:44.063873277 +0200
25
@@ -3,7 +3,7 @@ SHLIBS = -lslang -lm -lc
26
 
27
 GPM_SUPPORT=@gpm_support@
28
 
29
-CFLAGS = -Wall -Os -D_GNU_SOURCE
30
+CFLAGS += -D_GNU_SOURCE
31
 
32
 VERSION = @VERSION@
33
 CVSTAG = r$(subst .,-,$(VERSION))
34
@@ -86,7 +86,7 @@ clean:
35
        $(SHAREDOBJS) *.so*
36
 
37
 depend:
38
-   $(CPP) $(CFLAGS) -M $(SOURCES) > .depend
39
+   $(CC) $(CFLAGS) -M $(SOURCES) > .depend
40
 
41
 $(SHAREDDIR):
42
    mkdir -p $(SHAREDDIR)
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.