Make the removal of references to AvFLAGS in the B modules conditional
[p5sagit/p5-mst-13.2.git] / ext / B / B / cc_harness
CommitLineData
a798dbf2 1use Config;
2
3$libdir = $ENV{PERL_SRC} || "$Config{installarchlib}/CORE";
4
5if (!grep(/^-[cS]$/, @ARGV)) {
6 $linkargs = sprintf("%s $libdir/$Config{libperl} %s",
7 @Config{qw(ldflags libs)});
8}
9
10$cccmd = "$Config{cc} $Config{ccflags} -I$libdir @ARGV $linkargs";
11print "$cccmd\n";
12exec $cccmd;