delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/18/15:00:51

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Stephano Mariani" <sk DOT mail AT btinternet DOT com>
To: "'Charles Wilson'" <cwilson AT ece DOT gatech DOT edu>
Cc: <cygwin AT cygwin DOT com>, <libtool AT gnu DOT org>
Subject: RE: Specifying a .def file for use with libtools libraries
Date: Mon, 18 Feb 2002 19:33:36 -0000
Message-ID: <007601c1b8b3$292127a0$01000001@sknet01>
MIME-Version: 1.0
X-Priority: 1 (Highest)
X-MSMail-Priority: High
X-Mailer: Microsoft Outlook, Build 10.0.2616
In-Reply-To: <3C715277.5000408@ece.gatech.edu>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: High

Yes, I have, and unfortunately, it does not work!

I have been looking through the source code of the libtool generated by
configure... it seems that it generates an .exp file using the following
command:

/usr/bin/nm -B  .libs/libfile_somefile.o  | sed -n -e 's/^.*[
]\([ABCDGISTW][ABCDGISTW]*\)[   ][
]*\(_\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' | sed 's/.* //' | sort
| uniq > .libs/libfile.exp

And passes it to ld via gcc using -Wl,-retain-symbols-file
-Wl,.libs/libfile.exp

This seems flawed to me since ld simply ignores it as far as I can see!

Stephano Mariani

> -----Original Message-----
> From: Charles Wilson [mailto:cwilson AT ece DOT gatech DOT edu]
> Sent: Monday, 18 February 2002 7 14
> To: Stephano Mariani
> Cc: cygwin AT cygwin DOT com
> Subject: Re: Specifying a .def file for use with libtools libraries
> 
> This is kindof a kluge, but try this:
> 
> libname_la_LDFLAGS = foo.def <-no-undefined and other link flags>
> 
> --chuck
> 
> Stephano Mariani wrote:
> 
> > Hello,
> >
> > Is there a way to use something similar to .def files with libtool.
I
> > have no way of limiting the export list, and the -export-symbols
<file>
> > directive in the libname_la_LDFLAGS seems not to work.
> >
> > I could go and rename all the symbols to avoid conflicts, but I
would
> > rather not... there has to be a way to do this using libtool.
> >
> > Please help! I am fast getting desperate enough to drop libtool
> > altogether.
> >
> > Thanks in advance,
> >
> > Stephano Mariani
> >
> >
> > --
> > Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> > Bug reporting:         http://cygwin.com/bugs.html
> > Documentation:         http://cygwin.com/docs.html
> > FAQ:                   http://cygwin.com/faq/
> >
> >
> 



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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