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 sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: Peter Dufault Message-Id: <200002261520.KAA11129@hda.hda.com> Subject: Re: Help redifining the LD make production In-Reply-To: <200002260014.SAA16020@hp2.xraylith.wisc.edu> from Mumit Khan at "Feb 25, 2000 06:14:39 pm" To: Mumit Khan Date: Sat, 26 Feb 2000 10:20:25 -0500 (EST) CC: cygwin AT sourceware DOT cygnus DOT com X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > > However, I can't figure out the "right way to do it", that is, > > I can't figure out where I change one or two things and have this > > sort of script (it doesn't have to be this, and I know it might have > > something to do with "dllwrap") apply across the board. > > If this works, this is the right way ;-) This does indeed work, the question is is there one place I can modify a Makefile.in or Makefile.am or configure.in or so on and have this apply to all the programs, or do I have to start modifying lots of Makefile.in's? That is "the wrong thing to do" I referred to. > The new upcoming binutils[1] will use the new pe-dll code that works like > VC++ and Unix linkers and will create DLLs in one pass. > > $ gcc -shared -o foo.dll -Wl,--out-implib,libfoo.a foo.def $OBJS $LIBS THIS seems like the right thing to do. Then I assume I can set the correct LDFLAGS (or LDADD etc) somewhere or another in one place and rebuild cygwin. Thanks, I'll download the new binutils and get it working. > http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ for more info > on building DLLs. It talks about methods 1 and 2 in some detail. And another thanks, this helped me get as far as I did. Peter -- Peter Dufault (dufault AT hda DOT com) Realtime development, Machine control, HD Associates, Inc. Fail-Safe systems, Agency approval -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com