diff --git a/glib/Makefile.am b/glib/Makefile.am index 766f37309..953ea08b6 100644 --- a/glib/Makefile.am +++ b/glib/Makefile.am @@ -362,15 +362,12 @@ libglib_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \ INSTALL_PROGS= if ENABLE_DTRACE -DTCOMPILE = $(patsubst -W%,,$(LTCOMPILE)) -DTCFLAGS = $(patsubst -W%,,$(CFLAGS)) - glib_probes.h: glib_probes.d $(AM_V_GEN) $(DTRACE) -C -h -s $< -o $@.tmp @$(SED) -e "s,define STAP_HAS_SEMAPHORES 1,undef STAP_HAS_SEMAPHORES," < $@.tmp > $@ && rm -f $@.tmp glib_probes.lo: glib_probes.d - $(AM_V_GEN) env CC="$(DTCOMPILE)" CFLAGS="$(DTCFLAGS)" $(DTRACE) -G -s $< -o $@ + $(AM_V_GEN) $(LIBTOOL) --mode=compile $(AM_V_lt) --tag=CC $(DTRACE) -G -s $< -o $@ BUILT_SOURCES += glib_probes.h glib_probes.lo CLEANFILES += glib_probes.h glib_probes.h.tmp diff --git a/gobject/Makefile.am b/gobject/Makefile.am index a72e39cab..ba9dcc8e6 100644 --- a/gobject/Makefile.am +++ b/gobject/Makefile.am @@ -110,15 +110,13 @@ gobject_c_sources = \ gvaluetypes.c if ENABLE_DTRACE -DTCOMPILE = $(patsubst -W%,,$(LTCOMPILE)) -DTCFLAGS = $(patsubst -W%,,$(CFLAGS)) gobject_probes.h: gobject_probes.d $(AM_V_GEN) $(DTRACE) -C -h -s $< -o $@.tmp @$(SED) -e "s,define STAP_HAS_SEMAPHORES 1,undef STAP_HAS_SEMAPHORES," < $@.tmp > $@ && rm -f $@.tmp gobject_probes.lo: gobject_probes.d - $(AM_V_GEN) env CC="$(DTCOMPILE)" CFLAGS="$(DTCFLAGS)" $(DTRACE) -G -s $< -o $@ + $(AM_V_GEN) $(LIBTOOL) --mode=compile $(AM_V_lt) --tag=CC $(DTRACE) -G -s $< -o $@ BUILT_SOURCES += gobject_probes.h gobject_probes.lo CLEANFILES += gobject_probes.h