diff options
author | Tony Cook <tony@develop-help.com> | 2016-11-28 15:15:18 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2017-01-05 10:05:02 +1100 |
commit | f2a60c1f79f4336895ffcbe81f18e49b0228ea44 (patch) | |
tree | 99b1ea820374781b6d8e37ca02c6f15f89ad8c5e /Makefile.SH | |
parent | 728ecd1a39982c980df9493fd4040692b931f2a0 (diff) | |
download | perl-f2a60c1f79f4336895ffcbe81f18e49b0228ea44.tar.gz |
(perl #130108) check if dtrace accepts -xnolibs and use it if available
dtrace without -xnolibs fails in a FreeBSD jail, so we need to supply
it on FreeBSD.
Unfortunately systemtap's dtrace emulation doesn't support -xnolibs so
we need to test if it's available.
Diffstat (limited to 'Makefile.SH')
-rwxr-xr-x | Makefile.SH | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.SH b/Makefile.SH index fce2928aff..1b81e20adc 100755 --- a/Makefile.SH +++ b/Makefile.SH @@ -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 |