• 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/dash/0001-no-config.h-for-helpers.patch
Peter KorsgaardPeter Korsgaard committed 298cd8eaa2103 Feb 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
[PATCH] Don't include config.h when building helpers using the native compiler
2
​
3
config.h contains settings for the cross compiler (most importantly
4
32/64bit versions of functions), so don't include it when calling the
5
native compiler to build the helpers.
6
​
7
Otherwise we get build errors like:
8
​
9
/usr/bin/gcc -include ../config.h -DBSD=1 -DSHELL -DIFS_BROKEN  -g -O2 -Wall    -o mkinit mkinit.c
10
In file included from /usr/include/sys/stat.h:107,
11
                 from /usr/include/fcntl.h:38,
12
                 from mkinit.c:50:
13
/usr/include/bits/stat.h:117: error: redefinition of ‘struct stat’
14
In file included from /usr/include/fcntl.h:38,
15
                 from mkinit.c:50:
16
/usr/include/sys/stat.h:504: error: redefinition of ‘stat’
17
/usr/include/sys/stat.h:455: note: previous definition of ‘stat’ was here
18
​
19
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
20
---
21
 src/Makefile.in |    1 -
22
 1 file changed, 1 deletion(-)
23
​
24
Index: dash-0.5.5.1/src/Makefile.in
25
===================================================================
26
--- dash-0.5.5.1.orig/src/Makefile.in
27
+++ dash-0.5.5.1/src/Makefile.in
28
@@ -165,7 +165,6 @@ COMMON_CPPFLAGS = \
29
 AM_CFLAGS = $(COMMON_CFLAGS)
30
 AM_CPPFLAGS = $(COMMON_CPPFLAGS)
31
 AM_CFLAGS_FOR_BUILD = -g -O2 $(COMMON_CFLAGS) 
32
-AM_CPPFLAGS_FOR_BUILD = $(COMMON_CPPFLAGS)
33
 COMPILE_FOR_BUILD = \
34
    $(CC_FOR_BUILD) $(AM_CPPFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) \
35
    $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) 
  • 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.