|
From: Paul F. <pa...@so...> - 2023-07-02 11:02:04
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=73ec73ed7fe20ec6427dba63e52534136f3c19bd commit 73ec73ed7fe20ec6427dba63e52534136f3c19bd Author: Paul Floyd <pj...@wa...> Date: Sun Jul 2 12:59:40 2023 +0200 FreeBSD: add default to configure.ac FreeBSD 13 versions Also add comment to README.freebsd about ensuring that jails set "uname -r" to be something compatible with the normal RELEASE/STABLE/CURRENT releases. Diff: --- README.freebsd | 4 ++++ configure.ac | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/README.freebsd b/README.freebsd index 90eefc89b9..d197efcaf3 100644 --- a/README.freebsd +++ b/README.freebsd @@ -21,6 +21,10 @@ $ ./configure --prefix=/where/ever $ gmake $ gmake install +If you are using a jail for building, make sure that it is configured so that +"uname -r" returns a string that matches the pattern "XX.Y-*" where XX is the +major version (12, 13, 14 ...) and Y is the minor version (0, 1, 2, 3). + Known Limitations (June 2022) 0. Be aware that if you use a wrapper script and run Valgrind on the wrapper diff --git a/configure.ac b/configure.ac index 1d4164a7d8..4dbb1753c7 100755 --- a/configure.ac +++ b/configure.ac @@ -444,6 +444,10 @@ case "${host_os}" in AC_DEFINE([FREEBSD_VERS], FREEBSD_13_2, [FreeBSD version]) freebsd_vers=$freebsd_13_2 ;; + *) + AC_MSG_RESULT([unsupported (${kernel})]) + AC_MSG_ERROR([Valgrind works on FreeBSD 10.x to 14.x]) + ;; esac ;; 14.*) |