]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
FreeBSD: add default to configure.ac FreeBSD 13 versions
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 2 Jul 2023 10:59:40 +0000 (12:59 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 2 Jul 2023 10:59:40 +0000 (12:59 +0200)
Also add comment to README.freebsd about ensuring that
jails set "uname -r" to be something compatible with the
normal RELEASE/STABLE/CURRENT releases.

README.freebsd
configure.ac

index 90eefc89b9bfa8052d72f21c77cd641239e6dc04..d197efcaf328e9da2a72562f4078af4e037dbf08 100644 (file)
@@ -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
index 1d4164a7d82c27c9c414891cebe9d5e33968c6e1..4dbb1753c7f52b2508c2266b2b24279c81d22928 100755 (executable)
@@ -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.*)