Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <3A637798.51059810@familiehaase.de>
Date: Mon, 15 Jan 2001 22:20:08 +0000
From: Gerrit Peter Haase <gerrit@familiehaase.de>
Reply-To: gerrit.haase@t-online.de
Organization: Esse keine toten Tiere
X-Mailer: Mozilla 4.51 [de]C-CCK-MCD DT  (Win98; I)
X-Accept-Language: de
MIME-Version: 1.0
To: Stephen Patterson <fileysurgery@techie.com>
CC: perl win32 list <perl-win32-users@listserv1.ActiveState.com>,
        cygwin@cygwin.com
Subject: Re: Compiling perl scripts
References: <384300948.979570251881.JavaMail.root@web349-mc>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Sender: 320081107336-0001@t-dialin.net



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

