Hi!

I am trying to work dtrace into a library created with automake and libtool. I've been playing with this all afternoon but I've hit a wall on making the following work:

noinst_HEADERS = ha_skeleton.h \
                 skeleton_probes.h

lib_LTLIBRARIES = libskeleton_engine.la
libskeleton_engine_la_SOURCES = ha_skeleton.cc skeleton_probes.d

I've added the following suffix rule and header builder:

skeleton_probes.h: skeleton_probes.d
        $(DTRACE) $(DTRACEFLAGS) -h -s skeleton_probes.d
        mv skeleton_probes.h skeleton_probes.h.bak
sed "s/#include <unistd.h>//g" skeleton_probes.h.bak > skeleton_probes.h
        rm skeleton_probes.h.bak

SUFFIXES : .d

.d.o : $(DTRACEFILES)
        $(DTRACE) $(DTRACEFLAGS) -G -s $< $(DTRACEFILES)

The "sed" has to be done to keep the port working on windows (which lacks the unistd.h that is generated by the dtrace -h). It would be nice to see dtrace fixed so that portability was a bit easier.

The problem? The Dtrace file isn't built. The fault is more in mine in not being able to get automake to do what it should be able to do, but when looking around the net I've not found where anyone else has gotten dtrace to work with libtool libraries either.

Thanks!

Cheers,
   -Brian

--
_______________________________________________________
Brian "Krow" Aker, brian at tangent.org
Seattle, Washington
_______________________________________________________
You can't grep a dead tree.


_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to