On Fri, Oct 26, 2007 at 03:38:03PM -0500, Robert Lor wrote:
In Postgres we follow the old way of implementing USDT.
1) add probes to src.c
2) cc -c src.c -o src.o
3) dtrace -G -s probes.d src.o ...
4) cc -o postgres src.o probes.o
This works fine on Solaris but it breaks on OSX since the -G flag
doesn't exist (adding it with no-op won't help). Can this still be
done in OSX (replacing -G with -h?) or does it only support the new way
where the .h file has to be produced first? If not, I'd say the two
implementations have incompatible behavior.
It should be sufficient to just remove the 'dtrace -G ...' step.
Adam