diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-07-23 16:33:20 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-07-23 16:33:20 +0200 |
commit | 21f33cf59e5ab2fa056310b681a4b3a569bfcf62 (patch) | |
tree | 77cca225332e8478eb6a78144c952ca71ff5d960 /package/valgrind/patches/patch-configure_in | |
parent | cc05bbeff55b80315437fc514658ba0e8ba4a505 (diff) |
update valgrind, add debian patches for armv6 support, works on raspberry pi now
Diffstat (limited to 'package/valgrind/patches/patch-configure_in')
-rw-r--r-- | package/valgrind/patches/patch-configure_in | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/package/valgrind/patches/patch-configure_in b/package/valgrind/patches/patch-configure_in new file mode 100644 index 000000000..418898ecf --- /dev/null +++ b/package/valgrind/patches/patch-configure_in @@ -0,0 +1,41 @@ +--- valgrind-3.7.0.orig/configure.in 2011-11-05 12:13:30.000000000 +0100 ++++ valgrind-3.7.0/configure.in 2013-07-23 12:27:45.000000000 +0200 +@@ -140,6 +140,8 @@ esac + # configure-time, and distinguishes them from the VGA_*/VGO_*/VGP_* + # variables used when compiling C files. + ++VGCONF_PLATFORM_ARM_ARCH= ++ + AC_CANONICAL_HOST + + AC_MSG_CHECKING([for a supported CPU]) +@@ -176,15 +178,26 @@ case "${host_cpu}" in + ;; + + armv7*) +- AC_MSG_RESULT([ok (${host_cpu})]) +- ARCH_MAX="arm" +- ;; ++ # This means we use a armv7 toolchain - at least Cortex-A8 ++ AC_MSG_RESULT([ok (${host_cpu} using armv7 codepath)]) ++ ARCH_MAX="arm" ++ VGCONF_PLATFORM_ARM_ARCH="-march=armv7 -mcpu=cortex-a8" ++ ;; ++ ++ arm*) ++ # Generic arm toolchain - we will target armv6 ++ AC_MSG_RESULT([(${host_cpu}) - no armv7 toolchain specified, will enforce armv6 when compiling]) ++ ARCH_MAX="arm" ++ VGCONF_PLATFORM_ARM_ARCH="-march=armv6" ++ AC_DEFINE(ARM_ARCH_V6,1,"Defined for v6 architectures") ++ ;; + + *) + AC_MSG_RESULT([no (${host_cpu})]) + AC_MSG_ERROR([Unsupported host architecture. Sorry]) + ;; + esac ++AC_SUBST(VGCONF_PLATFORM_ARM_ARCH) + + #---------------------------------------------------------------------------- + |