This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=f17d357487161eec4634aaaebeb2d855e16d9b4e commit f17d357487161eec4634aaaebeb2d855e16d9b4e Author: Guillem Jover <[email protected]> AuthorDate: Sat Sep 20 17:26:30 2025 +0200 build: Add a function definition to compile for the flags checks For flags that are accepted and only trigger an error when emitting actual code (such as with -fcf-protection), the check would succeed, but then fail to compile. This is really a hack, because non-functional compiler options should not be exposed to callers as if they worked. --- m4/dpkg-compiler.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/dpkg-compiler.m4 b/m4/dpkg-compiler.m4 index 4a88ab1d0..7c5ba8d19 100644 --- a/m4/dpkg-compiler.m4 +++ b/m4/dpkg-compiler.m4 @@ -28,7 +28,7 @@ AC_DEFUN([DPKG_CHECK_COMPILER_FLAG], [ AS_VAR_COPY([dpkg_varname_save], [dpkg_varname]) AS_VAR_SET([dpkg_varname], ["-Werror dpkg_check_flag"]) AC_COMPILE_IFELSE([ - AC_LANG_SOURCE([[]]) + AC_LANG_SOURCE([[int function() { return 0; }]]) ], [ AS_VAR_SET([dpkg_varname_cache], [yes]) ], [ -- Dpkg.Org's dpkg

