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
Date: Sat, 23 Nov 2002 11:02:20 +0100
From: "Gerrit P. Haase" <gp@familiehaase.de>
Organization: Esse keine toten Tiere
X-Priority: 3 (Normal)
Message-ID: <1573001262.20021123110220@familiehaase.de>
To: cygwin@cygwin.com
Subject: Re: The Black Art of DLL Creation (revisited)
In-Reply-To: <121531094763.20021122232353@familiehaase.de>
References: <Xns92CE8DFF2E1BCsoren1Gmane@80.91.224.249>
 <121531094763.20021122232353@familiehaase.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Sender: 320081107336-0001@t-dialin.net

Hallo,

[...]

> passes it to ld:

>   $command ="$CC -shared -o  $dllname";
> #  $command .=" --verbose" if $verbose;

>   $command .=" -Wl,--output-def=$libname$DEF_EXT" if $DEF_EXT;
>   $command .=" -Wl,--output-exp=$libname$EXP_EXT" if $EXP_EXT;
>   $command .=" -Wl,--out-implib=$libname.dll$LIB_EXT" if $LIB_EXT;
>   $command .=" -Wl,--export-all-symbols" if $EXPORT_ALL;
>   $command .=" -Wl,--enable-auto-import -Wl,--stack,8388608"; # always

> There should be correct .def and .exp files then.

This is also not correct...it seems ld doesn't support creating .exp
libraries or it is done in a different way?
So:   $command .=" -Wl,--output-exp=$libname$EXP_EXT" if $EXP_EXT;
doesn't work with gcc -shared.


Gerrit
-- 
=^..^=


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

