summaryrefslogtreecommitdiff
path: root/lang/perl5/patches/patch-ext_XS-APItest_Makefile.PL
blob: 5dd3ba6bd927c2deda434639b7d5cd9a3b928435 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-ext_XS-APItest_Makefile.PL,v 1.1 2016/06/14 11:47:21 jperkin Exp $

Do not generate DTrace objects for objects which do not contain DTrace probes.

--- ext/XS-APItest/Makefile.PL.orig	2016-04-06 12:31:16.000000000 +0000
+++ ext/XS-APItest/Makefile.PL
@@ -3,7 +3,7 @@ use ExtUtils::MakeMaker;
 use ExtUtils::Constant 0.11 'WriteConstants';
 use Config;
 
-my $dtrace_o = $Config{dtraceobject} ? ' dtrace$(OBJ_EXT)' : '';
+my $dtrace_o = $Config{notdtraceobject} ? ' dtrace$(OBJ_EXT)' : '';
 
 WriteMakefile(
     'NAME'		=> 'XS::APItest',
@@ -49,7 +49,7 @@ sub MY::postamble
     package MY;
     my $post = shift->SUPER::postamble(@_);
     use Config;
-    return $post unless $Config{dtraceobject};
+    return $post unless $Config{notdtraceobject};
 
     # core.o is build using PERL_CORE, so picks up any dtrace probes