Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Wed, 7 Apr 2004 11:11:43 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Will using cygwin help with back-linking? Message-ID: <20040407151143.GA3808@coc.bosbc.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <010201c41beb$013a9ee0$033310ac AT kwcorp DOT com> <6 DOT 0 DOT 1 DOT 1 DOT 0 DOT 20040406115543 DOT 037c68e8 AT 127 DOT 0 DOT 0 DOT 1> <002a01c41c24$afc043f0$6400a8c0 AT HPLAPTOP> <4073929F DOT 8010405 AT luukku DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4073929F.8010405@luukku.com> User-Agent: Mutt/1.4.1i On Wed, Apr 07, 2004 at 08:33:19AM +0300, Jani tiainen wrote: >Jay West wrote: > >>Larry wrote... >> >>>Did you see this? >>> >>> >> >>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: > > > > > > >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.. I wouldn't call it off-topic if it is using the binutils and gcc provided by cygwin. cgf -- 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/