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 Reply-To: "'pp'" 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'" 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> <46A65A46 DOT 80209 AT x-ray DOT at> In-Reply-To: <46A65A46.80209@x-ray.at> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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/