This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: Compiling perl scripts
- To: Stephen Patterson <fileysurgery at techie dot com>
- Subject: Re: Compiling perl scripts
- From: Gerrit Peter Haase <gerrit at familiehaase dot de>
- Date: Mon, 15 Jan 2001 22:20:08 +0000
- CC: perl win32 list <perl-win32-users at listserv1 dot ActiveState dot com>, cygwin at cygwin dot com
- Organization: Esse keine toten Tiere
- References: <384300948.979570251881.JavaMail.root@web349-mc>
- Reply-To: gerrit dot haase at t-online dot de
Stephen Patterson schrieb:
>
> How can I specify a compiler for perlcc to use?
>
> I have the cygnus linux(ish) toolkit, with gcc, g++ cc1 and make, does
> anyone know how to tell perlcc to use any of these?
>
From perlcc, line 272-282 (for my perl):
sub cc_harness {
my ($cfile,$stash)=@_;
use ExtUtils::Embed ();
my $command = ExtUtils::Embed::ccopts." -o $Output $cfile ";
$command .= " -I".$_ for split /\s+/, opt(I);
$command .= " -L".$_ for split /\s+/, opt(L);
my @mods = split /-?u /, $stash;
$command .= " ".ExtUtils::Embed::ldopts("-std", \@mods);
vprint 3, "running cc $command";
system("cc $command");
}
^^^^^^^^
here is hardcoded 'cc' were your compiler needs to be called (gcc).
In Erics perl5.6.1-1 for cygwin, there is a patch aplied that fixes this.
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple