delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/02/12/09:37:25

From: beaty AT emess DOT mscd DOT edu (Steve Beaty)
Subject: static linking?
12 Feb 1998 09:37:25 -0800 :
Message-ID: <199802120601.XAA31880.cygnus.gnu-win32@emess.mscd.edu>
To: gnu-win32 AT cygnus DOT com

	this has got to be so obvious, i'm seeing only forest...  how
	does one create a statically-linked executable with gcc/g++/ld?
	i've tried -static with gcc and -Bstatic with ld, and neither seem
	to work.  linking in crt0.o, libcygwin.a, etc. doesn't do the
	job either.  what i want is to run an executable compiled under
	gnu-win32 run on a machine without gnu-win32.  i've read the FAQ,
	searched the mailing list archives and altavista without luck.

	while i'm asking, is there a way to convert an executable that
	depends on cygwin.dll to a statically-linked one?

	thanks much,

-- 
Steve Beaty                                           Assistant Professor
Metro State College of Denver                        beaty AT emess DOT mscd DOT edu
VOX: (303) 556-5321                                 Science Building 225A
FAX: (303) 556-5381                         http://clem.mscd.edu/~beatys/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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