delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/09/10:07:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Thu, 09 Sep 2004 18:06:00 +0400
From: Maarten Boekhold <boekhold AT emirates DOT net DOT ae>
Subject: Re: Cygwin's libtool, passing .def file name to gcc during linking
In-reply-to: <41405EE9.20001@emirates.net.ae>
To: cygwin AT cygwin DOT com
Message-id: <41406348.8060106@emirates.net.ae>
MIME-version: 1.0
User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626)
References: <41405EE9 DOT 20001 AT emirates DOT net DOT ae>
X-IsSubscribed: yes

Ha, who'd have thought...

I found it. I can use '--export-symbols plugin.def' for this. Even 
though the plugin.def doesn't contain exports, but imports... (this is a 
plugin library that invokes functions contained in the executable that 
loads the library...)

Maarten


Maarten Boekhold wrote:

> Hi,
> 
> I'm trying to port an application to Cygwin that uses libtool to drive 
> compilation/linking.
> 
> This application needs to be linked with a ".def" file during the 
> linking stage, i.e. (formatted to make it readable)
> 
> /bin/bash ./libtool --mode=link gcc  -g -O2
>                     -o libplugin.la -rpath /usr/local/lib
>                     -no-undefined
>                     -module
>                     libplugin_la-plugin.lo -lgobject-2.0
>                     -lglib-2.0 -lintl -liconv plugin.def
>                                               ^^^^^^^^^^
> rm -fr  .libs/libplugin.dll.a
> gcc -shared  .libs/libplugin_la-plugin.o
>     -L/usr/lib /usr/lib/libgobject-2.0.dll.a
>     /usr/lib/libglib-2.0.dll.a /usr/lib/libintl.dll.a
>     /usr/lib/libiconv.dll.a  -o .libs/cygplugin-0.dll
>     -Wl,--image-base=0x10000000
>     -Wl,--out-implib,.libs/libplugin.dll.a
> 
> as you see I'm trying to pass a 'plugin.def' filename to libtool, with 
> the intention this shows up in the GCC command. It doesn't, and I can't 
> figure out how to pass this apart from manually hacking libtool.
> 
> Anybody have any suggestions?
> 
> (btw. the reason I send this to the cygwin list is that I know the 
> cygwin version of libtool is somewhat hacked. I'm using devel btw.)
> 
> Maarten
> 
> -- 
> 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/
> 
> 

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