Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Wed, 13 Jun 2001 11:01:22 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: how to static link? Message-ID: <20010613110122.F1144@cygbert.vinschen.de> Mail-Followup-To: cygwin AT cygwin DOT com References: <20010613031121 DOT 22566 DOT qmail AT mail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010613031121.22566.qmail@mail.com>; from dgun@umpire.com on Wed, Jun 13, 2001 at 11:11:21AM +0800 On Wed, Jun 13, 2001 at 11:11:21AM +0800, D G wrote: > I've tried linking with gcc -static, and even specified static libraries as /usr/X11R6/lib/libX11.a, but still cygwin produces a dynamically linked executable. How can I compile a statically linked executable? You can't. Cygwin isn't statically linkable. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple