Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@sourceware.cygnus.com>
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-ID: <01135E04E54DD311BAC300A0C9ED9352177BB3@micsrv1.mic.dtu.dk>
From: Torben Mikael Hansen <tmh@mic.dtu.dk>
To: "'cygwin'" <cygwin@sourceware.cygnus.com>
Subject: DLL that does not use cygwin ?
Date: Wed, 17 Nov 1999 16:43:51 +0100
X-MS-TNEF-Correlator: <01135E04E54DD311BAC300A0C9ED9352177BB3@micsrv1.mic.dtu.dk>
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.10)
Content-Type: multipart/mixed;
	boundary="----_=_NextPart_000_01BF3112.900D47A8"

------_=_NextPart_000_01BF3112.900D47A8
Content-Type: text/plain

How do I build a DLL that does not use cygwin1.dll

I've tried the following but the DLL still has cygwin1.dll in its import
table

gcc -c axdrv.cpp -Wall -mno-cygwin
ld --base-file axdrv.base --dll -o axdrv.dll -e _dll_entry@12 axdrv.o
dlltool --as=as --dllname axdrv.dll --def axdrv.def --base-file axdrv.base
--output-exp axdrv.exp
ld --base-file axdrv.base axdrv.exp --dll -o axdrv.dll -e _dll_entry@12
axdrv.o 
dlltool --as=as --dllname axdrv.dll --def axdrv.def --base-file axdrv.base
--output-exp axdrv.exp
ld axdrv.exp --dll -o axdrv.dll -e _dll_entry@12 axdrv.o

Putting a -mno-cygwin anywhere else results in compile time errors.

Torben

___________________________________________________
Torben Mikael Hansen
Research Assistant
Nanotechnology
Mikroelektronik Centret
DTU Building 345e, DK-2800 Kgs. Lyngby, Denmark

office:	157
tel.:   	+45 4525 5731
lab:		+45 4525 5812
fax:		+45 4588 7762
email: 	tmh@mic.dtu.dk



------_=_NextPart_000_01BF3112.900D47A8
Content-Type: text/plain; charset=us-ascii

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
------_=_NextPart_000_01BF3112.900D47A8--
