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
6 | 6 |
|
7 | 7 |
- Moose::Manual::Construction now notes that roles can modify the BUILD sub.
|
8 | 8 |
(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).
|
9 | 14 |
|
10 | 15 |
2.2010 2018-02-16
|
11 | 16 |
|
51 | 51 |
|
52 | 52 |
use Config;
|
53 | 53 |
|
|
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 |
|
54 | 71 |
sub const_cccmd {
|
55 | 72 |
my $ret = shift->SUPER::const_cccmd(@_);
|
56 | 73 |
return q{} unless $ret;
|