perlhacktips: -Accflags for PERL_DEBUG_READONLY_OPS
authorFather Chrysostomos <sprout@cpan.org>
Mon, 30 Dec 2013 00:43:03 +0000 (16:43 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 30 Dec 2013 00:43:03 +0000 (16:43 -0800)
It is not clear to all that this has to be specified as
-Accflags=-D... when used on the Configure command line.

pod/perlhacktips.pod

index e3ef6f9..2f19c04 100644 (file)
@@ -1391,7 +1391,8 @@ L<perlclib>.
 
 Under ithreads the optree is read only.  If you want to enforce this, to
 check for write accesses from buggy code, compile with
-C<-DPERL_DEBUG_READONLY_OPS> to enable code that allocates op memory
+C<-Accflags=-DPERL_DEBUG_READONLY_OPS>
+to enable code that allocates op memory
 via C<mmap>, and sets it read-only when it is attached to a subroutine.
 Any write access to an op results in a C<SIGBUS> and abort.