[Libguestfs] [PATCH nbdkit v3] tests: Improve test for libc_malloc_debug
Richard W.M. Jones
rjones at redhat.com
Tue Aug 24 16:00:26 UTC 2021
On Tue, Aug 24, 2021 at 03:10:40PM +0100, Richard W.M. Jones wrote:
> +dnl Does this platform have $libdir/libc_malloc_debug.so.0 (glibc >=
> +dnl 2.34)? We have to override the idiotic exec_prefix misfeature to
> +dnl get to the real libdir.
> +real_libdir="$(
> + if test "x$prefix" != xNONE; then
> + exec_prefix="$prefix"
> + else
> + exec_prefix="$ac_default_prefix"
> + fi
> + eval echo $libdir
> +)"
> +LIBC_MALLOC_DEBUG="$real_libdir/libc_malloc_debug.so.0"
> +AC_MSG_CHECKING([for $LIBC_MALLOC_DEBUG])
> +AS_IF([test -r $LIBC_MALLOC_DEBUG], [
> + have_libc_malloc_debug=yes
> + AC_SUBST([LIBC_MALLOC_DEBUG])
> +],[have_libc_malloc_debug=no])
> +AC_MSG_RESULT([$have_libc_malloc_debug])
> +AM_CONDITIONAL([HAVE_LIBC_MALLOC_DEBUG],
> + [test "x$have_libc_malloc_debug" = xyes])
Oh hang on here, LD_PRELOAD obeys the normal path searching?!
So I don't need any of this.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
More information about the Libguestfs
mailing list