This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: how to static link?


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@cygwin.com
Red Hat, Inc.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]