blob: e31ef1cf8fe37a7a90ee9dd7cc60d3ca947e7600 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!@HOST_PERL@
foreach (@ARGV) {
# Stop parsing options if we encounter a non-option argument or --
last if $_ eq '--' || $_ !~ m/^-/;
# Modify first option of the form -Ilib, -I../lib, ... to refer to lib_build instead
if ($_ =~ m@-I(.*/)?lib@) {
$_ .= '_build';
last;
}
}
exec '@HOST_PERL@', @ARGV
|