Skip to content

Commit

Permalink
valgrind: Fix build on ARMv7
Browse files Browse the repository at this point in the history
The valgrind configure script checks if host_cpu is set to armv7 or arm.
By default --host is set to arm-openwrt-linux and the host_cpu variable
is set to arm. Then the valgrind build tries to compile valgrind for
armv6 and fails. Set it explicitly to armv7 to compile valgrind with
armv7 support.

Fixes: 1a55d90 ("valgrind: Update to version 3.23")
Link: openwrt/openwrt#16633
Signed-off-by: Hauke Mehrtens <[email protected]>
  • Loading branch information
hauke committed Oct 8, 2024
1 parent 0846656 commit ffa4be4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package/devel/valgrind/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ else
BITS := 32bit
endif

ifeq ($(CONFIG_arm_v7),y)
CONFIGURE_ARGS += --host=armv7-openwrt-linux$(if $(TARGET_SUFFIX),-$(TARGET_SUFFIX))
endif

CONFIGURE_ARGS += \
--enable-lto \
--enable-tls \
Expand Down

0 comments on commit ffa4be4

Please sign in to comment.