diff options
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/valgrind/valgrind_3.11.0.bb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind_3.11.0.bb b/meta/recipes-devtools/valgrind/valgrind_3.11.0.bb index 70d84fe9a2..8e9b72cd61 100644 --- a/meta/recipes-devtools/valgrind/valgrind_3.11.0.bb +++ b/meta/recipes-devtools/valgrind/valgrind_3.11.0.bb | |||
@@ -44,6 +44,11 @@ EXTRA_OECONF_append_arm = " --host=armv7${HOST_VENDOR}-${HOST_OS}" | |||
44 | 44 | ||
45 | EXTRA_OEMAKE = "-w" | 45 | EXTRA_OEMAKE = "-w" |
46 | 46 | ||
47 | # valgrind likes to control its own optimisation flags. It generally defaults | ||
48 | # to -O2 but uses -O0 for some specific test apps etc. Passing our own flags | ||
49 | # (via CFLAGS) means we interfere with that. | ||
50 | SELECTED_OPTIMIZATION = "" | ||
51 | |||
47 | CFLAGS_append_libc-uclibc = " -D__UCLIBC__ " | 52 | CFLAGS_append_libc-uclibc = " -D__UCLIBC__ " |
48 | 53 | ||
49 | do_install_append () { | 54 | do_install_append () { |
@@ -63,10 +68,9 @@ RDEPENDS_${PN}-ptest += " sed perl glibc-utils perl-module-file-glob" | |||
63 | INSANE_SKIP_${PN}-ptest += "file-rdeps" | 68 | INSANE_SKIP_${PN}-ptest += "file-rdeps" |
64 | 69 | ||
65 | do_compile_ptest() { | 70 | do_compile_ptest() { |
66 | oe_runmake check CFLAGS="${CFLAGS} -O0" CXXFLAGS="${CXXFLAGS} -O0" | 71 | oe_runmake check |
67 | } | 72 | } |
68 | 73 | ||
69 | |||
70 | do_install_ptest() { | 74 | do_install_ptest() { |
71 | chmod +x ${B}/tests/vg_regtest | 75 | chmod +x ${B}/tests/vg_regtest |
72 | 76 | ||
@@ -107,4 +111,3 @@ do_install_ptest() { | |||
107 | # handle multilib | 111 | # handle multilib |
108 | sed -i s:@libdir@:${libdir}:g ${D}${PTEST_PATH}/run-ptest | 112 | sed -i s:@libdir@:${libdir}:g ${D}${PTEST_PATH}/run-ptest |
109 | } | 113 | } |
110 | |||