go to bug id or search bugs for
The configure script (acinclude.m4) currently searches for valgrind header file and enables valgrin support if found.
When cross-compiling the searched paths are invalid for the target platform because they below to the host system. There seems to be no way to give the build system a dedicated path where to look.
This leads to the issue, that when cross-compiling eg. for ARMv5 platform, that valgrind header file is detected - because host system is amd64 - and support is enabled but target platform will never support valgrind (valgrind requires e.g. at least ARMv7).
So the proposal is to fix/rework the detection, or better add a configuration option for this, e.g. --without-valgrind-support or --with-valgrind-support=<dir> as used for other libraries should be enough.
Add a Patch
Add a Pull Request
Automatic comment on behalf of email@example.com
Log: Fixed bug #75722: Rework valgrind detection