summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorDexuan Cui <dexuan.cui@intel.com>2011-11-16 17:49:44 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-24 23:33:35 +0000
commit1cfd618493c30ccadb6ca3691074562d1589e8d8 (patch)
tree3474ee7ce3d8c7403a7eb63d48176ce531c74d51 /meta/recipes-devtools
parentc27a005ea9df71a22909bd66d94b3e6631718738 (diff)
downloadpoky-1cfd618493c30ccadb6ca3691074562d1589e8d8.tar.gz
gcc-package-target.inc: add the symbol link /lib/cpp
When I was trying self-hosted-image, eglibc's do_install failed in the target: ERROR: cannot stat bootparam_prot.h: the cause is: rpcgen doesn't work properly: rpcgen can't exec /lib/cpp since it doesn't exist. According to http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/lib.html: "if a C preprocessor is installed, /lib/cpp must be a reference to it, for historical reasons. The usual placement of this binary is /usr/bin/cpp". Typical distros, like Ubuntu, openSuSE, Fedora and RHEL, all comply with the rule. Actually in meta/recipes-devtools/gcc/gcc-package-target.inc, we do try to package ${base_libdir}/cpp: FILES_cpp = "\ ${bindir}/${TARGET_PREFIX}cpp \ ${base_libdir}/cpp \ ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1" But unluckily we didn't create a symbol link in do_install. This patch adds the symbol link. (From OE-Core rev: 58fb9fbce2af05a469691390e75aebb2de16ca96) Signed-off-by: Dexuan Cui <dexuan.cui@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.6.inc2
-rw-r--r--meta/recipes-devtools/gcc/gcc-package-target.inc2
2 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.inc b/meta/recipes-devtools/gcc/gcc-4.6.inc
index 7bf14e397f..7cd08500d1 100644
--- a/meta/recipes-devtools/gcc/gcc-4.6.inc
+++ b/meta/recipes-devtools/gcc/gcc-4.6.inc
@@ -1,6 +1,6 @@
1require gcc-common.inc 1require gcc-common.inc
2 2
3PR = "r17" 3PR = "r18"
4 4
5# Third digit in PV should be incremented after a minor release 5# Third digit in PV should be incremented after a minor release
6# happens from this branch on gcc e.g. currently its 4.6.0 6# happens from this branch on gcc e.g. currently its 4.6.0
diff --git a/meta/recipes-devtools/gcc/gcc-package-target.inc b/meta/recipes-devtools/gcc/gcc-package-target.inc
index f0f1a046ff..307667057c 100644
--- a/meta/recipes-devtools/gcc/gcc-package-target.inc
+++ b/meta/recipes-devtools/gcc/gcc-package-target.inc
@@ -122,6 +122,8 @@ do_install () {
122 ln -sf ${TARGET_PREFIX}g++ g++ 122 ln -sf ${TARGET_PREFIX}g++ g++
123 ln -sf ${TARGET_PREFIX}gcc gcc 123 ln -sf ${TARGET_PREFIX}gcc gcc
124 ln -sf ${TARGET_PREFIX}cpp cpp 124 ln -sf ${TARGET_PREFIX}cpp cpp
125 install -d ${D}${base_libdir}
126 ln -sf ${bindir}/${TARGET_PREFIX}cpp ${D}${base_libdir}/cpp
125 ln -sf g++ c++ 127 ln -sf g++ c++
126 ln -sf gcc cc 128 ln -sf gcc cc
127 129