summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-4.5.1/gcc-flags-for-build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.5.1/gcc-flags-for-build.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.5.1/gcc-flags-for-build.patch180
1 files changed, 0 insertions, 180 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.5.1/gcc-flags-for-build.patch b/meta/recipes-devtools/gcc/gcc-4.5.1/gcc-flags-for-build.patch
deleted file mode 100644
index 2cf54aec73..0000000000
--- a/meta/recipes-devtools/gcc/gcc-4.5.1/gcc-flags-for-build.patch
+++ /dev/null
@@ -1,180 +0,0 @@
1Upstream-Status: Pending
2
3Index: gcc-4.5/Makefile.def
4===================================================================
5--- gcc-4.5.orig/Makefile.def
6+++ gcc-4.5/Makefile.def
7@@ -240,6 +240,7 @@ flags_to_pass = { flag= AWK ; };
8 flags_to_pass = { flag= BISON ; };
9 flags_to_pass = { flag= CC_FOR_BUILD ; };
10 flags_to_pass = { flag= CFLAGS_FOR_BUILD ; };
11+flags_to_pass = { flag= CPPFLAGS_FOR_BUILD ; };
12 flags_to_pass = { flag= CXX_FOR_BUILD ; };
13 flags_to_pass = { flag= EXPECT ; };
14 flags_to_pass = { flag= FLEX ; };
15Index: gcc-4.5/gcc/Makefile.in
16===================================================================
17--- gcc-4.5.orig/gcc/Makefile.in
18+++ gcc-4.5/gcc/Makefile.in
19@@ -766,7 +766,7 @@ BUILD_LINKERFLAGS = $(BUILD_CFLAGS)
20
21 # Native linker and preprocessor flags. For x-fragment overrides.
22 BUILD_LDFLAGS=@BUILD_LDFLAGS@
23-BUILD_CPPFLAGS=$(ALL_CPPFLAGS)
24+BUILD_CPPFLAGS=$(INCLUDES) @BUILD_CPPFLAGS@ $(X_CPPFLAGS)
25
26 # Actual name to use when installing a native compiler.
27 GCC_INSTALL_NAME := $(shell echo gcc|sed '$(program_transform_name)')
28Index: gcc-4.5/gcc/configure.ac
29===================================================================
30--- gcc-4.5.orig/gcc/configure.ac
31+++ gcc-4.5/gcc/configure.ac
32@@ -1798,16 +1798,18 @@ AC_SUBST(inhibit_libc)
33 # Also, we cannot run fixincludes.
34
35 # These are the normal (build=host) settings:
36-CC_FOR_BUILD='$(CC)' AC_SUBST(CC_FOR_BUILD)
37-BUILD_CFLAGS='$(ALL_CFLAGS)' AC_SUBST(BUILD_CFLAGS)
38-BUILD_LDFLAGS='$(LDFLAGS)' AC_SUBST(BUILD_LDFLAGS)
39-STMP_FIXINC=stmp-fixinc AC_SUBST(STMP_FIXINC)
40+CC_FOR_BUILD='$(CC)' AC_SUBST(CC_FOR_BUILD)
41+BUILD_CFLAGS='$(ALL_CFLAGS)' AC_SUBST(BUILD_CFLAGS)
42+BUILD_LDFLAGS='$(LDFLAGS)' AC_SUBST(BUILD_LDFLAGS)
43+BUILD_CPPFLAGS='$(ALL_CPPFLAGS)' AC_SUBST(BUILD_CPPFLAGS)
44+STMP_FIXINC=stmp-fixinc AC_SUBST(STMP_FIXINC)
45
46 # And these apply if build != host, or we are generating coverage data
47 if test x$build != x$host || test "x$coverage_flags" != x
48 then
49 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
50 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
51+ BUILD_CPPFLAGS='$(CPPFLAGS_FOR_BUILD)'
52 fi
53
54 # Expand extra_headers to include complete path.
55Index: gcc-4.5/Makefile.in
56===================================================================
57--- gcc-4.5.orig/Makefile.in
58+++ gcc-4.5/Makefile.in
59@@ -333,6 +333,7 @@ AR_FOR_BUILD = @AR_FOR_BUILD@
60 AS_FOR_BUILD = @AS_FOR_BUILD@
61 CC_FOR_BUILD = @CC_FOR_BUILD@
62 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
63+CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@
64 CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
65 CXX_FOR_BUILD = @CXX_FOR_BUILD@
66 DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
67@@ -662,6 +663,7 @@ BASE_FLAGS_TO_PASS = \
68 "BISON=$(BISON)" \
69 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
70 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
71+ "CPPFLAGS_FOR_BUILD=$(CPPFLAGS_FOR_BUILD)" \
72 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
73 "EXPECT=$(EXPECT)" \
74 "FLEX=$(FLEX)" \
75Index: gcc-4.5/gcc/configure
76===================================================================
77--- gcc-4.5.orig/gcc/configure
78+++ gcc-4.5/gcc/configure
79@@ -707,6 +707,7 @@ SED
80 LIBTOOL
81 collect2
82 STMP_FIXINC
83+BUILD_CPPFLAGS
84 BUILD_LDFLAGS
85 BUILD_CFLAGS
86 CC_FOR_BUILD
87@@ -10982,6 +10983,7 @@ fi
88 CC_FOR_BUILD='$(CC)'
89 BUILD_CFLAGS='$(ALL_CFLAGS)'
90 BUILD_LDFLAGS='$(LDFLAGS)'
91+BUILD_CPPFLAGS='$(ALL_CPPFLAGS)'
92 STMP_FIXINC=stmp-fixinc
93
94 # And these apply if build != host, or we are generating coverage data
95@@ -10989,6 +10991,7 @@ if test x$build != x$host || test "x$cov
96 then
97 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
98 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
99+ BUILD_CPPFLAGS='$(CPPFLAGS_FOR_BUILD)'
100 fi
101
102 # Expand extra_headers to include complete path.
103@@ -17108,7 +17111,7 @@ else
104 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
105 lt_status=$lt_dlunknown
106 cat > conftest.$ac_ext <<_LT_EOF
107-#line 17111 "configure"
108+#line 17114 "configure"
109 #include "confdefs.h"
110
111 #if HAVE_DLFCN_H
112@@ -17214,7 +17217,7 @@ else
113 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
114 lt_status=$lt_dlunknown
115 cat > conftest.$ac_ext <<_LT_EOF
116-#line 17217 "configure"
117+#line 17220 "configure"
118 #include "confdefs.h"
119
120 #if HAVE_DLFCN_H
121Index: gcc-4.5/Makefile.tpl
122===================================================================
123--- gcc-4.5.orig/Makefile.tpl
124+++ gcc-4.5/Makefile.tpl
125@@ -336,6 +336,7 @@ AR_FOR_BUILD = @AR_FOR_BUILD@
126 AS_FOR_BUILD = @AS_FOR_BUILD@
127 CC_FOR_BUILD = @CC_FOR_BUILD@
128 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
129+CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@
130 CXXFLAGS_FOR_BUILD = @CXXFLAGS_FOR_BUILD@
131 CXX_FOR_BUILD = @CXX_FOR_BUILD@
132 DLLTOOL_FOR_BUILD = @DLLTOOL_FOR_BUILD@
133Index: gcc-4.5/configure
134===================================================================
135--- gcc-4.5.orig/configure
136+++ gcc-4.5/configure
137@@ -651,6 +651,7 @@ GCJ_FOR_BUILD
138 DLLTOOL_FOR_BUILD
139 CXX_FOR_BUILD
140 CXXFLAGS_FOR_BUILD
141+CPPFLAGS_FOR_BUILD
142 CFLAGS_FOR_BUILD
143 CC_FOR_BUILD
144 AS_FOR_BUILD
145@@ -8036,6 +8037,7 @@ esac
146 # our build compiler if desired.
147 if test x"${build}" = x"${host}" ; then
148 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
149+ CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
150 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
151 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
152 fi
153@@ -8101,6 +8103,7 @@ done
154
155
156
157+
158
159
160
161Index: gcc-4.5/configure.ac
162===================================================================
163--- gcc-4.5.orig/configure.ac
164+++ gcc-4.5/configure.ac
165@@ -3089,6 +3089,7 @@ esac
166 # our build compiler if desired.
167 if test x"${build}" = x"${host}" ; then
168 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
169+ CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
170 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
171 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
172 fi
173@@ -3155,6 +3156,7 @@ AC_SUBST(AR_FOR_BUILD)
174 AC_SUBST(AS_FOR_BUILD)
175 AC_SUBST(CC_FOR_BUILD)
176 AC_SUBST(CFLAGS_FOR_BUILD)
177+AC_SUBST(CPPFLAGS_FOR_BUILD)
178 AC_SUBST(CXXFLAGS_FOR_BUILD)
179 AC_SUBST(CXX_FOR_BUILD)
180 AC_SUBST(DLLTOOL_FOR_BUILD)