how to static link?

Corinna Vinschen cygwin@cygwin.com
Wed Jun 13 02:01:00 GMT 2001


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



More information about the Cygwin mailing list