}
sub recordtools() {
- foreach my $stem (qw(rumprun-xen rumpxen-app)) {
- my $apptool = "$rux/app-tools/$stem";
- next unless target_file_exists($ho, "$apptool-configure");
- store_runvar('cmdprefix_configure', "$apptool-configure");
- store_runvar('cmdprefix_make', "$apptool-make");
- return;
- }
- die "app-tools not found ($rux)";
+ my $gcc = target_cmd_output($ho, "echo $rux/bin/*-gcc");
+ chomp $gcc;
+ die "$gcc ?" if $gcc =~ m/\S/;
+ my $prefix = "CC=$gcc ";
+ store_runvar('cmdprefix_configure', $prefix);
+ store_runvar('cmdprefix_make', $prefix);
}
sub install() {