summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKJ Tsanaktsidis <[email protected]>2024-07-07 21:42:35 +1000
committerKJ Tsanaktsidis <[email protected]>2024-07-07 22:37:36 +1000
commitdface4427da99561a4578a4b92a8321bc2d6c023 (patch)
tree60a5f410f20bc425f8c1887b3774a89f18f16cb3
parent8ec67052e67dff62b828820e381a94a3acc73459 (diff)
Also export CC for dtrace's benefit as well
The CFLAGS might contain flags that only work with the specified CC
-rw-r--r--template/Makefile.in2
1 files changed, 1 insertions, 1 deletions
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