Also export CC for dtrace's benefit as well
The CFLAGS might contain flags that only work with the specified CC
This commit is contained in:
parent
8ec67052e6
commit
dface4427d
@ -480,7 +480,7 @@ probes.$(OBJEXT): $(srcdir)/probes.d $(DTRACE_REBUILD:yes=probes.stamp)
|
|||||||
@$(ECHO) processing probes in object files
|
@$(ECHO) processing probes in object files
|
||||||
@# n.b. the dtrace script looks at the $CFLAGS environment variable to decide
|
@# 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)
|
@# 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:
|
# DTrace static library hacks described here:
|
||||||
# https://marc.info/?l=opensolaris-dtrace-discuss&m=114761203110734&w=4
|
# https://marc.info/?l=opensolaris-dtrace-discuss&m=114761203110734&w=4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user