summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlperl/lib/B/cc_harness
blob: 79f8727a8f02dca57126dea9510ba878b78d909c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use Config;

$libdir = $ENV{PERL_SRC} || "$Config{installarchlib}/CORE";

if (!grep(/^-[cS]$/, @ARGV)) {
    $linkargs = sprintf("%s $libdir/$Config{libperl} %s",
			@Config{qw(ldflags libs)});
}

$cccmd = "$Config{cc} $Config{ccflags} -I$libdir @ARGV $linkargs";
print "$cccmd\n";
exec $cccmd;