Compiling glib currently gives warnings like: *** Warning: Linking the shared library libglib-2.0.la against the non-libtool *** objects glib_probes.o is not portable! An easy way to fix this without noticeably breaking solaris command-line compatibility would be to have dtrace use $CC instead of 'gcc' to compile the temp file. Then we could do something like: CC="libtool --mode=compile gcc" dtrace -s -G ... This could also be used to fix bug 663289.
commit: b1568fd85e Dtrace script should honor $CPP, $CC, $CFLAGS
stap 1.6 and 1.7 should have this fix.