delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/27/17:26:31

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Andre Oliveira da Costa" <costa AT cade DOT com DOT br>
To: "Cygwin" <cygwin AT sources DOT redhat DOT com>
Subject: Static version of Cygwin DLL?
Date: Wed, 27 Dec 2000 20:25:19 -0200
Message-ID: <000c01c07053$e52f4250$ab00000a@costa>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600

Hi there,

I need to build an executable using Cygwin (gcc, ld etc.), but I need it not
to depend on cygwin1.dll. I tried to link directly with /usr/lib/libcygwin.a
:

gcc -static -o ../bin/test.exe ../obj/test.o  -L/usr/lib -lcygwin

but the resulting executable still requires the presence of cygwin1.dll on
the path. I've searched the archives, but did not find anything closer than
this:

http://www.delorie.com/archives/browse.cgi?p=cygwin/1998/02/13/01:17:34

it's too old, I thought maybe there could be something more up-to-date (I
tried Mumit's site as well, but it deals mainly with the problem of building
DLLs with Cygwin).

Any hints or directions to other documentation about this would be greatly
appreciated.

TIA.

Andre
--
André Oliveira da Costa


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019