This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Initial check-in of perl compiler.
[perl5.git] / cc_harness
1 use Config;
2
3 $libdir = "$Config{installarchlib}/CORE";
4
5 if (!grep(/^-[cS]$/, @ARGV)) {
6     $linkargs = sprintf("%s -L$libdir -lperl %s", @Config{qw(ldflags libs)});
7 }
8
9 $cccmd = "$Config{cc} $Config{ccflags} -I$libdir @ARGV $linkargs";
10 print "$cccmd\n";
11 exec $cccmd;