CPPFLAGS is needed for dtrace not only INCFLAGS

This commit is contained in:
Nobuyoshi Nakada 2022-12-19 22:42:28 +09:00
parent 84f0d2dd41
commit 060ae17c80
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2025-01-13 01:55:32 +00:00

View File

@ -474,7 +474,7 @@ _PREFIXED_SYMBOL = TOKEN_PASTE($(SYMBOL_PREFIX),name)
.d.h:
@$(ECHO) translating probes $<
$(Q) $(DTRACE) -o $@.tmp -h -C $(INCFLAGS) -s $<
$(Q) $(DTRACE) -o $@.tmp -h -C $(INCFLAGS) $(CPPFLAGS) -s $<
$(Q) sed -e 's/RUBY_/RUBY_DTRACE_/g' -e 's/PROBES_H_TMP/RUBY_PROBES_H/' -e 's/(char \*/(const char */g' -e 's/, char \*/, const char */g' $@.tmp > $@
$(Q) $(RM) $@.tmp