diff options
| author | Khem Raj <raj.khem@gmail.com> | 2011-06-17 17:11:43 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-23 11:50:07 +0100 |
| commit | 0faa5f72999fea82fadda8bab70abea2303216c7 (patch) | |
| tree | 05a8c18d2f67d883f94d2bd6f060ab0f4ac7f156 /meta/recipes-devtools/gcc/gcc-4.6/gcc-flags-for-build.patch | |
| parent | c2007ba4cdb64fa9e308d3dae395c03ef4cc9161 (diff) | |
| download | poky-0faa5f72999fea82fadda8bab70abea2303216c7.tar.gz | |
gcc-4.6: Switch to using svn SRC_URI for recipe
We call the recipes 4.6
Remove the backport patches
(From OE-Core rev: 68b545f4ff719f2b6e57d68b002dc9845c7a14ae)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6/gcc-flags-for-build.patch')
| -rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6/gcc-flags-for-build.patch | 180 |
1 files changed, 180 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6/gcc-flags-for-build.patch b/meta/recipes-devtools/gcc/gcc-4.6/gcc-flags-for-build.patch new file mode 100644 index 0000000000..9cba50dcc5 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6/gcc-flags-for-build.patch | |||
| @@ -0,0 +1,180 @@ | |||
| 1 | Upstream-Status: Pending | ||
| 2 | |||
| 3 | Index: gcc-4.6.0/Makefile.def | ||
| 4 | =================================================================== | ||
| 5 | --- gcc-4.6.0.orig/Makefile.def | ||
| 6 | +++ gcc-4.6.0/Makefile.def | ||
| 7 | @@ -243,6 +243,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 ; }; | ||
| 15 | Index: gcc-4.6.0/gcc/Makefile.in | ||
| 16 | =================================================================== | ||
| 17 | --- gcc-4.6.0.orig/gcc/Makefile.in | ||
| 18 | +++ gcc-4.6.0/gcc/Makefile.in | ||
| 19 | @@ -770,7 +770,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)') | ||
| 28 | Index: gcc-4.6.0/gcc/configure.ac | ||
| 29 | =================================================================== | ||
| 30 | --- gcc-4.6.0.orig/gcc/configure.ac | ||
| 31 | +++ gcc-4.6.0/gcc/configure.ac | ||
| 32 | @@ -1784,16 +1784,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. | ||
| 55 | Index: gcc-4.6.0/Makefile.in | ||
| 56 | =================================================================== | ||
| 57 | --- gcc-4.6.0.orig/Makefile.in | ||
| 58 | +++ gcc-4.6.0/Makefile.in | ||
| 59 | @@ -338,6 +338,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 | @@ -691,6 +692,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)" \ | ||
| 75 | Index: gcc-4.6.0/gcc/configure | ||
| 76 | =================================================================== | ||
| 77 | --- gcc-4.6.0.orig/gcc/configure | ||
| 78 | +++ gcc-4.6.0/gcc/configure | ||
| 79 | @@ -703,6 +703,7 @@ SED | ||
| 80 | LIBTOOL | ||
| 81 | collect2 | ||
| 82 | STMP_FIXINC | ||
| 83 | +BUILD_CPPFLAGS | ||
| 84 | BUILD_LDFLAGS | ||
| 85 | BUILD_CFLAGS | ||
| 86 | CC_FOR_BUILD | ||
| 87 | @@ -11382,6 +11383,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 | @@ -11389,6 +11391,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 | @@ -17505,7 +17508,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 17508 "configure" | ||
| 108 | +#line 17511 "configure" | ||
| 109 | #include "confdefs.h" | ||
| 110 | |||
| 111 | #if HAVE_DLFCN_H | ||
| 112 | @@ -17611,7 +17614,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 17614 "configure" | ||
| 117 | +#line 17617 "configure" | ||
| 118 | #include "confdefs.h" | ||
| 119 | |||
| 120 | #if HAVE_DLFCN_H | ||
| 121 | Index: gcc-4.6.0/Makefile.tpl | ||
| 122 | =================================================================== | ||
| 123 | --- gcc-4.6.0.orig/Makefile.tpl | ||
| 124 | +++ gcc-4.6.0/Makefile.tpl | ||
| 125 | @@ -341,6 +341,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@ | ||
| 133 | Index: gcc-4.6.0/configure.ac | ||
| 134 | =================================================================== | ||
| 135 | --- gcc-4.6.0.orig/configure.ac | ||
| 136 | +++ gcc-4.6.0/configure.ac | ||
| 137 | @@ -3154,6 +3154,7 @@ esac | ||
| 138 | # our build compiler if desired. | ||
| 139 | if test x"${build}" = x"${host}" ; then | ||
| 140 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | ||
| 141 | + CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}} | ||
| 142 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | ||
| 143 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | ||
| 144 | fi | ||
| 145 | @@ -3220,6 +3221,7 @@ AC_SUBST(AR_FOR_BUILD) | ||
| 146 | AC_SUBST(AS_FOR_BUILD) | ||
| 147 | AC_SUBST(CC_FOR_BUILD) | ||
| 148 | AC_SUBST(CFLAGS_FOR_BUILD) | ||
| 149 | +AC_SUBST(CPPFLAGS_FOR_BUILD) | ||
| 150 | AC_SUBST(CXXFLAGS_FOR_BUILD) | ||
| 151 | AC_SUBST(CXX_FOR_BUILD) | ||
| 152 | AC_SUBST(DLLTOOL_FOR_BUILD) | ||
| 153 | Index: gcc-4.6.0/configure | ||
| 154 | =================================================================== | ||
| 155 | --- gcc-4.6.0.orig/configure | ||
| 156 | +++ gcc-4.6.0/configure | ||
| 157 | @@ -617,6 +617,7 @@ GCJ_FOR_BUILD | ||
| 158 | DLLTOOL_FOR_BUILD | ||
| 159 | CXX_FOR_BUILD | ||
| 160 | CXXFLAGS_FOR_BUILD | ||
| 161 | +CPPFLAGS_FOR_BUILD | ||
| 162 | CFLAGS_FOR_BUILD | ||
| 163 | CC_FOR_BUILD | ||
| 164 | AS_FOR_BUILD | ||
| 165 | @@ -7675,6 +7676,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 | @@ -7740,6 +7742,7 @@ done | ||
| 174 | |||
| 175 | |||
| 176 | |||
| 177 | + | ||
| 178 | |||
| 179 | |||
| 180 | |||
