aboutsummaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2014-08-26 02:00:30 +0200
committerAndreas Oberritter <obi@opendreambox.org>2015-02-23 17:15:49 +0100
commitee03f92a5684336f07214261942b5121985b4ad6 (patch)
treec1ea37adfce93bd30e8dd18953b6006946957e26 /meta
parentae848cde2a7356fe73ecc7c8d08390345afa7551 (diff)
downloadopenembedded-core-contrib-ee03f92a5684336f07214261942b5121985b4ad6.tar.gz
gcc-4.8: strip full path from __FILE__ macro
With OE's long build paths, __FILE__ can get annoyingly long and makes it hard to read debug output of some programs, e.g. lighttpd. So reduce it to the filename and let's hope nothing breaks. Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Diffstat (limited to 'meta')
-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;