aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.8.inc1
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.8/0049-file-basename.patch19
2 files changed, 20 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.8.inc b/meta/recipes-devtools/gcc/gcc-4.8.inc
index ac205dedaf..bd912d4354 100644
--- a/meta/recipes-devtools/gcc/gcc-4.8.inc
+++ b/meta/recipes-devtools/gcc/gcc-4.8.inc
@@ -79,6 +79,7 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \
file://0047-repomembug.patch \
file://0048-PR57532.patch \
file://0048-PR58854_fix_arm_apcs_epilogue.patch \
+ file://0049-file-basename.patch \
file://0001-fix-ICE-when-building-opus.patch \
"
SRC_URI[md5sum] = "3b2386c114cd74185aa3754b58a79304"
diff --git a/meta/recipes-devtools/gcc/gcc-4.8/0049-file-basename.patch b/meta/recipes-devtools/gcc/gcc-4.8/0049-file-basename.patch
new file mode 100644
index 0000000000..47e345a1d9
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-4.8/0049-file-basename.patch
@@ -0,0 +1,19 @@
+Upstream-Status: Invalid [embedded specific]
+
+libcpp: Let __FILE__ macro expand to basename.
+
+Saves space on disk and screen, especially with OE's
+long build paths.
+
+Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
+
+--- gcc-4.8.1/libcpp/macro.c.orig 2014-08-25 10:05:59.620084235 +0200
++++ gcc-4.8.1/libcpp/macro.c 2014-08-25 10:10:50.530026877 +0200
+@@ -284,6 +284,7 @@
+ if (!name)
+ abort ();
+ }
++ name = lbasename (name);
+ len = strlen (name);
+ buf = _cpp_unaligned_alloc (pfile, len * 2 + 3);
+ result = buf;