summaryrefslogtreecommitdiff
path: root/ext/B/B/cc_harness
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-20 18:05:33 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-20 18:05:33 +0000
commita798dbf2f5009fe67f7460a594ffd57a76c0fa98 (patch)
treea450591fde794d984b10a254ee5f3dae1533616c /ext/B/B/cc_harness
parenta8581515f26a081f18157dc1cf5553deae632d07 (diff)
downloadperl-a798dbf2f5009fe67f7460a594ffd57a76c0fa98.tar.gz
Move lib/B/... and lib/[BO].pm over to where they should be,
under ext/B. p4raw-id: //depot/perl@564
Diffstat (limited to 'ext/B/B/cc_harness')
-rw-r--r--ext/B/B/cc_harness12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/B/B/cc_harness b/ext/B/B/cc_harness
new file mode 100644
index 0000000000..79f8727a8f
--- /dev/null
+++ b/ext/B/B/cc_harness
@@ -0,0 +1,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;