This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
(perl #130108) check if dtrace accepts -xnolibs and use it if available
[perl5.git] / Makefile.SH
index fce2928..1b81e20 100755 (executable)
@@ -390,8 +390,13 @@ VG_TEST  ?= ./perl -e 1 2>/dev/null
        ;;
 esac
 
+case "$dtracexnolibs" in
+define) xnolibs=-xnolibs ;;
+*) xnolibs= ;;
+esac
+
 $spitshell >>$Makefile <<!GROK!THIS!
-DTRACE = $dtrace
+DTRACE = $dtrace $xnolibs
 DTRACE_H = $dtrace_h
 
 DTRACE_PERLLIB_O = $dtrace_perllib_o # "dtrace -G" output for perllib_objs