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

X-Spam-Check-By: sourceware.org
Message-ID: <46A7ADF5.5030805@x-ray.at>
Date: Wed, 25 Jul 2007 22:09:25 +0200
From: Reini Urban <rurban AT x-ray DOT at>
Reply-To: "'pp'" <perl5-porters AT perl DOT org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8.1.5) Gecko/20070716 SeaMonkey/1.1.3
MIME-Version: 1.0
To: "'pp'" <perl5-porters AT perl DOT org>
CC: cygwin AT cygwin DOT com
Subject: die cygwin perlld and ld2, die! (was: Trying to build (perl) Inline::CPP-0.25)
References: <76F97D29CEDF4D97BA3004F2C2B2EF08 AT desktop2> <f850us$2h1$1 AT sea DOT gmane DOT org> <FCAC8B1EEB2D47EB8D55FB8C2C7A0774 AT desktop2> <46A65A46 DOT 80209 AT x-ray DOT at>
In-Reply-To: <46A65A46.80209@x-ray.at>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

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.
-- 
Reini

--
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