diff options
| -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 \ | |||
| 74 | file://arm-hard-float-loader.patch \ | 74 | file://arm-hard-float-loader.patch \ |
| 75 | file://gcc-argument-list-too-long.patch \ | 75 | file://gcc-argument-list-too-long.patch \ |
| 76 | file://fix-g++-sysroot.patch \ | 76 | file://fix-g++-sysroot.patch \ |
| 77 | file://disablesdt.patch \ | ||
| 77 | " | 78 | " |
| 78 | 79 | ||
| 79 | S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/git" | 80 | 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 @@ | |||
| 1 | We don't list dtrace in DEPENDS so we shouldn't be depending on this header. | ||
| 2 | It may or may not exist from preivous builds though. To be determinstic, disable | ||
| 3 | sdt.h usage always. This avoids build failures if the header is removed after configure | ||
| 4 | but before libgcc is compiled for example. | ||
| 5 | |||
| 6 | RP 2012/8/7 | ||
| 7 | |||
| 8 | Upstream-Status: Inappropriate [hack] | ||
| 9 | |||
| 10 | Index: git/gcc/configure | ||
| 11 | =================================================================== | ||
| 12 | --- git.orig/gcc/configure 2012-08-07 21:18:42.319247701 +0000 | ||
| 13 | +++ git/gcc/configure 2012-08-07 21:19:08.939247082 +0000 | ||
| 14 | @@ -26758,12 +26758,12 @@ | ||
| 15 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5 | ||
| 16 | $as_echo_n "checking sys/sdt.h in the target C library... " >&6; } | ||
| 17 | have_sys_sdt_h=no | ||
| 18 | -if test -f $target_header_dir/sys/sdt.h; then | ||
| 19 | - have_sys_sdt_h=yes | ||
| 20 | - | ||
| 21 | -$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h | ||
| 22 | - | ||
| 23 | -fi | ||
| 24 | +#if test -f $target_header_dir/sys/sdt.h; then | ||
| 25 | +# have_sys_sdt_h=yes | ||
| 26 | +# | ||
| 27 | +#$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h | ||
| 28 | +# | ||
| 29 | +#fi | ||
| 30 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5 | ||
| 31 | $as_echo "$have_sys_sdt_h" >&6; } | ||
| 32 | |||
