Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <4073929F.8010405@luukku.com>
Date: Wed, 07 Apr 2004 08:33:19 +0300
From: Jani tiainen <redetin@luukku.com>
User-Agent: Mozilla Thunderbird 0.5+ (Windows/20040404)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Will using cygwin help with back-linking?
References: <010201c41beb$013a9ee0$033310ac@kwcorp.com> <6.0.1.1.0.20040406115543.037c68e8@127.0.0.1> <002a01c41c24$afc043f0$6400a8c0@HPLAPTOP>
In-Reply-To: <002a01c41c24$afc043f0$6400a8c0@HPLAPTOP>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Jay West wrote:

> Larry wrote...
> 
>>Did you see this?
>>
>><http://www.cygwin.com/ml/cygwin/2000-10/msg00451.html>
> 
> No I didn't, but thanks! Actually, no, it doesn't answer my question. It
> does ask the precursor to my question, which is how to create a dlopenable
> module. I'm well aware of how to do that on unix, using exactly the commands
> he listed (main executable with --export-dynamic, module with -fpic and
> ld -shareable -dynamic). He is generally asking how to do that with cygwin,
> but there's no discussion of exactly what with, and if, backlinking is
> supported on a cygwin-ized windows machine.
> 
> I will gladly do the legwork of figuring out the specifics of how to do it
> on cygwin, but I was hoping someone could at least point me down the right
> path. Let me be more specific, I see two alternatives:

You don't have to, I did it already.. =)

> So I guess in the final analysis there are two specific questions: Does
> cygwin-based windows take care of backlinking, and if so with what
> tool/method, and  is it's method compatable with libtool in a transparent
> way on Unix vs. Cygwin/Windows?

Shortly no. Longer answer is yes it does.

I rember writing a few articles about this...

Basicaly thing goes so that you compile (but not link) needed files, 
generate needed .lib:s and then link whole thing.

Note that you can export symbols from .exe in same way.

Here is few pointers:

<http://mail.gnu.org/archive/html/libtool/2002-10/msg00145.html>

<http://sources.redhat.com/ml/cygwin/2003-12/msg01071.html>


And bad news is: libtool can't handle this (at least not to my knowledge).

Because this is strictly windoze specific, this is also a offtopic of 
this mailinglist..

-- 

Jani Tiainen


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

