Commit 0078c82a authored by Leon Timmermans's avatar Leon Timmermans Committed by Karen Etheridge

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.
parent 910e7f2b
......@@ -8,6 +8,11 @@ for, noteworthy changes.
- Moose::Manual::Construction now notes that roles can modify the BUILD sub.
(thanks, E. Choroba!)
- adjustments have been made to the Makefile for 'bmake', so it now works
when not run in compatibility mode (Leon Timmermans).
2.2010 2018-02-16
......@@ -52,6 +52,23 @@ package MY;
use Config;
# These two are necessary to keep bmake happy
sub xs_c {
my $self = shift;
my $ret = $self->SUPER::xs_c(@_);
$ret =~ s/\$\*\.xs/\$</g;
$ret =~ s/\$\*\.c\b/\$@/g;
return $ret;
sub c_o {
my $self = shift;
my $ret = $self->SUPER::c_o(@_);
$ret =~ s/\$\*\.c\b/\$</g;
$ret =~ s/\$\*\$\(OBJ_EXT\)/\$@/g;
return $ret;
sub const_cccmd {
my $ret = shift->SUPER::const_cccmd(@_);
return q{} unless $ret;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment