Codebase list libmoose-perl / 0078c82
Add bmake compatibility code In bsd make $* only contains the directory of the file if it's run in compatability mode. This breaks with Moose's use of the xs/ directory. Leon Timmermans authored 6 years ago Karen Etheridge committed 6 years ago
2 changed file(s) with 22 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
66
77 - Moose::Manual::Construction now notes that roles can modify the BUILD sub.
88 (thanks, E. Choroba!)
9
10 [OTHER]
11
12 - adjustments have been made to the Makefile for 'bmake', so it now works
13 when not run in compatibility mode (Leon Timmermans).
914
1015 2.2010 2018-02-16
1116
5151
5252 use Config;
5353
54 # These two are necessary to keep bmake happy
55 sub xs_c {
56 my $self = shift;
57 my $ret = $self->SUPER::xs_c(@_);
58 $ret =~ s/\$\*\.xs/\$</g;
59 $ret =~ s/\$\*\.c\b/\$@/g;
60 return $ret;
61 }
62
63 sub c_o {
64 my $self = shift;
65 my $ret = $self->SUPER::c_o(@_);
66 $ret =~ s/\$\*\.c\b/\$</g;
67 $ret =~ s/\$\*\$\(OBJ_EXT\)/\$@/g;
68 return $ret;
69 }
70
5471 sub const_cccmd {
5572 my $ret = shift->SUPER::const_cccmd(@_);
5673 return q{} unless $ret;