diff options
author | Ken Werner <ken.werner@linaro.org> | 2012-05-25 16:52:30 +0200 |
---|---|---|
committer | Ken Werner <ken.werner@linaro.org> | 2012-05-25 16:52:30 +0200 |
commit | 03bceadf7d9f70d7b013f453e81b2b9d1b7cdbc7 (patch) | |
tree | ea41a0effe6716580c43efcb9980776202eb1615 | |
parent | e881ba9c87fb2ad0bfa169079d91beeb256e5378 (diff) | |
download | meta-linaro-denzil.tar.gz |
Add OE-Core's gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patchdenzil-binary-4.6-2012.03denzil-4.6-2012.05denzil
This patch is required to build the Linaro GCC the OE-Core way. It changes
the compiler to respect OEs ARCH_FLAGS_FOR_TARGET environment variable when
building libgcc and friends. This variable contains things like -march= and
-mfloat-abi=. This change fixes a build failure when using the Linaro GCC
4.6 in conjunction with a hard float configuration.
Signed-off-by: Ken Werner <ken.werner@linaro.org>
-rw-r--r-- | recipes-devtools/gcc/gcc-linaro-4.6.inc | 1 | ||||
-rw-r--r-- | recipes-devtools/gcc/gcc-linaro-4.6/gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch | 33 |
2 files changed, 34 insertions, 0 deletions
diff --git a/recipes-devtools/gcc/gcc-linaro-4.6.inc b/recipes-devtools/gcc/gcc-linaro-4.6.inc index 9942717f..0bc54fa5 100644 --- a/recipes-devtools/gcc/gcc-linaro-4.6.inc +++ b/recipes-devtools/gcc/gcc-linaro-4.6.inc @@ -17,6 +17,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8" SRC_URI = "https://launchpad.net/gcc-linaro/4.6/4.6-${RELEASE}/+download/gcc-${PV}-${RELEASE}.tar.bz2 \ + file://gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \ file://64bithack.patch \ file://optional_libstdc.patch \ file://use-defaults.h-and-t-oe-in-B.patch \ diff --git a/recipes-devtools/gcc/gcc-linaro-4.6/gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch b/recipes-devtools/gcc/gcc-linaro-4.6/gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch new file mode 100644 index 00000000..ce827400 --- /dev/null +++ b/recipes-devtools/gcc/gcc-linaro-4.6/gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch @@ -0,0 +1,33 @@ +Upstream-Status: Inappropriate [embedded specific] + +--- + configure | 2 +- + configure.ac | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +Index: gcc-4.6.0/configure.ac +=================================================================== +--- gcc-4.6.0.orig/configure.ac ++++ gcc-4.6.0/configure.ac +@@ -3073,7 +3073,7 @@ fi + # for target_alias and gcc doesn't manage it consistently. + target_configargs="--cache-file=./config.cache ${target_configargs}" + +-FLAGS_FOR_TARGET= ++FLAGS_FOR_TARGET="$ARCH_FLAGS_FOR_TARGET" + case " $target_configdirs " in + *" newlib "*) + case " $target_configargs " in +Index: gcc-4.6.0/configure +=================================================================== +--- gcc-4.6.0.orig/configure ++++ gcc-4.6.0/configure +@@ -7594,7 +7594,7 @@ fi + # for target_alias and gcc doesn't manage it consistently. + target_configargs="--cache-file=./config.cache ${target_configargs}" + +-FLAGS_FOR_TARGET= ++FLAGS_FOR_TARGET="$ARCH_FLAGS_FOR_TARGET" + case " $target_configdirs " in + *" newlib "*) + case " $target_configargs " in |