[DTrace-devel] [PATCH] configure: add support for --(disable|enable)-dependency-tracking

Eugene Loh eugene.loh at oracle.com
Tue Feb 17 20:44:05 UTC 2026


On 2/17/26 11:35, Kris Van Hees via DTrace-devel wrote:

> Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
> ---
>   Makefunctions | 2 ++
>   configure     | 2 ++
>   2 files changed, 4 insertions(+)
>
> diff --git a/Makefunctions b/Makefunctions
> index 15836dc3..1f308967 100644
> --- a/Makefunctions
> +++ b/Makefunctions
> @@ -52,7 +52,9 @@ endef
>   # Rule to build a C source file.
>   # Syntax: $(call cc-template,primary,filename-without-dir,optional flags)
>   
> +ifndef WITHOUT_DEPENDENCIES
>   cc-dependencies = -MP -MMD -MF $(obj-name).deps -MT $(obj-name)
> +endif
>   
>   define cc-template
>   $(obj-name): $(src-name) $(foreach dep,$($(1)_SRCDEPS),$(call src-name,$(1),$(dep))) $(foreach prov,$($(1)_PROV),$(call hdr-name,$(1),$(prov))) $(CONFIG_H)
> diff --git a/configure b/configure
> index 04c28369..fadac05e 100755
> --- a/configure
> +++ b/configure
> @@ -172,6 +172,8 @@ for option in "$@"; do
>           HAVE_VALGRIND=*) write_config_var VALGRIND "$option";;
>           HAVE_BPFV3=*) write_config_var BPFV3 "$option";;
>           HAVE_BPFMASM=*) write_config_var BPFMASM "$option";;
> +        --disable-dependency-tracking) write_make_var WITHOUT_DEPENDENCIES "y";;
> +        --enable-dependency-tracking) write_make_var WITHOUT_DEPENDENCIES "n";;

Maybe add these earlier/higher?  Where the other write_make_var settings 
are?

Also, should these options be documented?  Like in the file's help()?

(Come to think of it, how about --with-libctf and --with-libfuse3? 
Should they also appear in --help?)

>           *) echo "Unknown option $option" >&2
>              exit 1;;
>       esac



More information about the DTrace-devel mailing list