delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/24/22:59:58

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
Date: Thu, 24 May 2001 22:59:25 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: hello from Russia (FAQ alert)
Message-ID: <20010524225925.A13698@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <1277 DOT 010525 AT rambler DOT ru>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <1277.010525@rambler.ru>; from rfcmaster@rambler.ru on Fri, May 25, 2001 at 06:39:30AM +0400

On Fri, May 25, 2001 at 06:39:30AM +0400, RFC Master wrote:
>But i BADLY need to produce a binary exe file that doesn't depend on
>cygwin1.dll and imports ALL the functions and subroutines i use into
>this exe file? I need my applications to run under a limited
>environment where i can launch only one small binary exe file (that
>doesn't exceed 200-300 Kb). But i have a reading access to the remote
>kernel32.dll.     
>
>How can i build my pretty small and simple console only programs
>independently from cygwin1.dll?

There is no way to do this if you are using functions that are only
found in cygwin, like fork().  If you don't need UNIX functionality,
you can compile with gcc -mno-cygwin .  This will create an executable
which relies only on Windows DLLs.  See http://www.mingw.org/ for more
details.

Otherwise, there is no way to link cygwin statically, which may be what
you are asking for.

David, do you think you could add some words about the that statically
linking cygwin isn't possible (or at least isn't possible without a LOT
of work) to the FAQ?

cgf

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