This is the mail archive of the cygwin@sourceware.cygnus.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]

static linking?



	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@emess.mscd.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@cygnus.com" with one line of text: "help".


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