From dface4427da99561a4578a4b92a8321bc2d6c023 Mon Sep 17 00:00:00 2001 From: KJ Tsanaktsidis Date: Sun, 7 Jul 2024 21:42:35 +1000 Subject: [PATCH] Also export CC for dtrace's benefit as well The CFLAGS might contain flags that only work with the specified CC --- template/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/Makefile.in b/template/Makefile.in index b7f3f10011..c679c9f96b 100644 --- a/template/Makefile.in +++ b/template/Makefile.in @@ -480,7 +480,7 @@ probes.$(OBJEXT): $(srcdir)/probes.d $(DTRACE_REBUILD:yes=probes.stamp) @$(ECHO) processing probes in object files @# n.b. the dtrace script looks at the $CFLAGS environment variable to decide @# how to assemble probes.o; so we need to actually _export_ $(CFLAGS) - $(Q) CFLAGS="$(CFLAGS) $(XCFLAGS) $(CPPFLAGS)" $(DTRACE) -G -C $(INCFLAGS) -s $(srcdir)/probes.d -o $@ $(DTRACE_REBUILD_OBJS) + $(Q) CC="$(CC)" CFLAGS="$(CFLAGS) $(XCFLAGS) $(CPPFLAGS)" $(DTRACE) -G -C $(INCFLAGS) -s $(srcdir)/probes.d -o $@ $(DTRACE_REBUILD_OBJS) # DTrace static library hacks described here: # https://marc.info/?l=opensolaris-dtrace-discuss&m=114761203110734&w=4