Extend build fingerprinting to include CFLAGS.

If the value of CFLAGS is changed between builds, the makefile
will rebuid, in the same way as for COPTS.
This commit is contained in:
Simon Kelley
2025-01-17 16:48:08 +00:00
parent 71766c0c35
commit 5d894620b4
2 changed files with 7 additions and 2 deletions

View File

@@ -362,6 +362,11 @@ HAVE_SOCKADDR_SA_LEN
#define HAVE_INOTIFY
#endif
/* This never compiles code, it's only used by the makefile to fingerprint builds. */
#ifdef DNSMASQ_COMPILE_FLAGS
static char *compile_flags = DNSMASQ_COMPILE_FLAGS;
#endif
/* Define a string indicating which options are in use.
DNSMASQ_COMPILE_OPTS is only defined in dnsmasq.c */