diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-07 21:29:00 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-07 22:37:35 +0100 |
commit | 1409d9b9690e39ecc63aacfdd5785586d83633ee (patch) | |
tree | d2ca2e06dc386d6dbe70866632a0da6c70fc7024 /meta/recipes-devtools/gcc | |
parent | 99c482124e9f476923f6d5cf0a9e5551507f9d14 (diff) | |
download | openembedded-core-1409d9b9690e39ecc63aacfdd5785586d83633ee.tar.gz openembedded-core-1409d9b9690e39ecc63aacfdd5785586d83633ee.tar.bz2 openembedded-core-1409d9b9690e39ecc63aacfdd5785586d83633ee.zip |
gcc: Disable use of sdt.h header
The target sysroot might contain sdt.h but we don't list this in DEPENDS
and shouldn't be referencing it. Unfortunately there is no way to tell
configure this since these tests are uncached and we can't force
a particular value. The only option is therefore to patch this out.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.7.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.7/disablesdt.patch | 32 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.7.inc b/meta/recipes-devtools/gcc/gcc-4.7.inc index 4905155a1f..4ad4819e88 100644 --- a/meta/recipes-devtools/gcc/gcc-4.7.inc +++ b/meta/recipes-devtools/gcc/gcc-4.7.inc @@ -74,6 +74,7 @@ SRC_URI = "git://github.com/mirrors/gcc.git;branch=${BRANCH};protocol=git \ file://arm-hard-float-loader.patch \ file://gcc-argument-list-too-long.patch \ file://fix-g++-sysroot.patch \ + file://disablesdt.patch \ " S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/git" diff --git a/meta/recipes-devtools/gcc/gcc-4.7/disablesdt.patch b/meta/recipes-devtools/gcc/gcc-4.7/disablesdt.patch new file mode 100644 index 0000000000..8946afc11a --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.7/disablesdt.patch @@ -0,0 +1,32 @@ +We don't list dtrace in DEPENDS so we shouldn't be depending on this header. +It may or may not exist from preivous builds though. To be determinstic, disable +sdt.h usage always. This avoids build failures if the header is removed after configure +but before libgcc is compiled for example. + +RP 2012/8/7 + +Upstream-Status: Inappropriate [hack] + +Index: git/gcc/configure +=================================================================== +--- git.orig/gcc/configure 2012-08-07 21:18:42.319247701 +0000 ++++ git/gcc/configure 2012-08-07 21:19:08.939247082 +0000 +@@ -26758,12 +26758,12 @@ + { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5 + $as_echo_n "checking sys/sdt.h in the target C library... " >&6; } + have_sys_sdt_h=no +-if test -f $target_header_dir/sys/sdt.h; then +- have_sys_sdt_h=yes +- +-$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h +- +-fi ++#if test -f $target_header_dir/sys/sdt.h; then ++# have_sys_sdt_h=yes ++# ++#$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h ++# ++#fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5 + $as_echo "$have_sys_sdt_h" >&6; } + |