summaryrefslogtreecommitdiff
path: root/meta/recipes-core/eglibc/eglibc-2.15/use-sysroot-cxx-headers.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-01-06 20:40:23 -0800
committerSaul Wold <sgw@linux.intel.com>2012-01-09 21:51:50 -0800
commit289d09176f8b6f66f6a7807b57f10e86939942f5 (patch)
treeadff6c96ab37208b1bc38ae3b28ac2ba40b0ef39 /meta/recipes-core/eglibc/eglibc-2.15/use-sysroot-cxx-headers.patch
parent553deffc8040afabd56b1c1d87a8a8d24bbae5d0 (diff)
downloadopenembedded-core-289d09176f8b6f66f6a7807b57f10e86939942f5.tar.gz
openembedded-core-289d09176f8b6f66f6a7807b57f10e86939942f5.tar.bz2
openembedded-core-289d09176f8b6f66f6a7807b57f10e86939942f5.zip
eglibc: Upgrade recipes 2.14 -> 2.15
Add patch to provide __finite_sqrt functions for ppc Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/recipes-core/eglibc/eglibc-2.15/use-sysroot-cxx-headers.patch')
-rw-r--r--meta/recipes-core/eglibc/eglibc-2.15/use-sysroot-cxx-headers.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-2.15/use-sysroot-cxx-headers.patch b/meta/recipes-core/eglibc/eglibc-2.15/use-sysroot-cxx-headers.patch
new file mode 100644
index 0000000000..7f8225371c
--- /dev/null
+++ b/meta/recipes-core/eglibc/eglibc-2.15/use-sysroot-cxx-headers.patch
@@ -0,0 +1,42 @@
+build system of glibc currently adds the cxx headers path by detecting
+it using provided CXX and expects that they are installed w.r.t to standard
+installation location but in OE we install and use cxx headers from target
+sysroot therefore that code needs to be adapted for OE
+
+Upstream-Status: Inappropriate [OE-specific]
+
+-Khem
+
+
+--- a/configure.in
++++ b/configure.in
+@@ -1094,11 +1094,10 @@ if test -n "$sysheaders"; then
+ -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
+ if test -n "$CXX"; then
+ CXX_SYSINCLUDES=
+- cxxversion=`$CXX -dumpversion 2>&AS_MESSAGE_LOG_FD` &&
+ cxxmachine=`$CXX -dumpmachine 2>&AS_MESSAGE_LOG_FD` &&
+ for d in include "$cxxmachine/include"; do
+- i=../../../../$d/c++/$cxxversion
+- cxxheaders=`$CXX -print-file-name="$i"` &&
++ i="$prefix/$d/c++"
++ cxxheaders=`$CXX -print-sysroot`"$i" &&
+ test "x$cxxheaders" != x && test "x$i" != "x$cxxheaders" &&
+ CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders \
+ -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
+--- a/configure
++++ b/configure
+@@ -5618,11 +5618,10 @@ if test -n "$sysheaders"; then
+ -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
+ if test -n "$CXX"; then
+ CXX_SYSINCLUDES=
+- cxxversion=`$CXX -dumpversion 2>&5` &&
+ cxxmachine=`$CXX -dumpmachine 2>&5` &&
+ for d in include "$cxxmachine/include"; do
+- i=../../../../$d/c++/$cxxversion
+- cxxheaders=`$CXX -print-file-name="$i"` &&
++ i="$prefix/$d/c++"
++ cxxheaders=`$CXX -print-sysroot`"$i" &&
+ test "x$cxxheaders" != x && test "x$i" != "x$cxxheaders" &&
+ CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders \
+ -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"