delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/25/16:31:57

X-Spam-Check-By: sourceware.org
Date: Wed, 25 Jul 2007 15:31:31 -0500
From: Steve Peters <steve AT fisharerojo DOT org>
To: "'pp'" <perl5-porters AT perl DOT org>
Cc: cygwin AT cygwin DOT com
Subject: Re: die cygwin perlld and ld2, die! (was: Trying to build (perl) Inline::CPP-0.25)
Message-ID: <20070725203131.GA15181@kirk.peters.homeunix.org>
References: <76F97D29CEDF4D97BA3004F2C2B2EF08 AT desktop2> <f850us$2h1$1 AT sea DOT gmane DOT org> <FCAC8B1EEB2D47EB8D55FB8C2C7A0774 AT desktop2> <46A65A46 DOT 80209 AT x-ray DOT at> <46A7ADF5 DOT 5030805 AT x-ray DOT at>
Mime-Version: 1.0
In-Reply-To: <46A7ADF5.5030805@x-ray.at>
User-Agent: Mutt/1.4.2.1i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Wed, Jul 25, 2007 at 10:09:25PM +0200, Reini Urban wrote:
> See the cygwin thread starting with 
> http://cygwin.com/ml/cygwin/2007-07/msg00622.html
> 
> >>I ran into a similar problem recently - the standard sort of c++ 
> >>references were not being found.  It turns out that the linker I was 
> >>calling was ld2, a script that called another script perlld (in 
> >>/usr/bin), where I found this:
> 
> >># these are pretty mandatory
> >>my $CC = 'gcc';
> >>my $EXPORT_ALL = 1;
> 
> >> I edited this script and replaced gcc with g++. I don't know if this
> >> was a good idea or not, but it seemed to fix the problem.
> 
> Reini Urban schrieb:
> >Interesting. We should definitely ask p5p if we shouldn't switch back to 
> >normal behaviour without the ld2 wrapper, but first I must study history 
> >on this issue, why we introduced that at all.
> 
> http://osdir.com/ml/lang.perl.perl5.porters/2003-09/msg01264.html
> 
> "Gerrit: It was introduced because cygwin used dllwrap
> to create dll's which is not a single pass step as creating them with
> gcc -shared -o perl.dll ...
> 
> I would like to get rid of it as soon as possible.  Since gcc
> understands now the -shared flag building shared libs is pretty much
> the same as on e.g. linux besides that we want an import library and
> a shared library (libperl.dll.a & libperl.dll) and also a static
> libperl.a for miniperl.
> 
> So we could use gcc as linker instead of the wrapper ld2, will be just
> a little tricky to get all the ldflags at the right place."
> 
> So I'll get rid of it NOW. But first in perl core, and then in the next 
> cygwin build.
> die! /usr/bin/perlld and /usr/bin/ld2, die!
> 
> Patch soon after proper testing.

Sounds fine to me.  I've run into quite a few problems with ld2 with 
multiple Perls on the same Cygwin installation.

Steve Peters
steve AT fisharerojo DOT org

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019