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 Message-ID: <393C5A55.3BE39579@ece.gatech.edu> Date: Mon, 05 Jun 2000 21:56:37 -0400 From: Charles Wilson X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT sourceware DOT cygnus DOT com Subject: Re: Patch for g++ References: <200006052302 DOT QAA11584 AT cygnus DOT com> <20000605190443 DOT B1233 AT cygnus DOT com> <393C344D DOT FDEFEC15 AT ece DOT gatech DOT edu> <20000605192013 DOT A4053 AT cygnus DOT com> <20000605213557 DOT E4509 AT cygnus DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit No problem -- the lack of response was because I was away from the computer; not because I was miffed over the Ron/Chuck mixup... Anyway, the patch was related to the dll search order thing, but it wasn't specifically intended for that. The dll search order was a binutils patch. The gcc patch modified only collect2.c and the cygwin-specs file (indirectly via cygwin.h). See attached below. --Chuck Chris Faylor wrote: > > On Mon, Jun 05, 2000 at 07:20:13PM -0400, Chris Faylor wrote: > >Was your patch for changing the dll search order, Ron? > ^^^ > Chuck? > > Sorry about that. > > cgf ----------------------------------snip---------------------- diff -u gcc-2.95.2-orig/gcc/config/i386/cygwin.h gcc-2.95.2/gcc/config/i386/cygwin.h --- gcc-2.95.2-orig/gcc/config/i386/cygwin.h Wed May 17 00:54:19 2000 +++ gcc-2.95.2/gcc/config/i386/cygwin.h Wed May 17 00:58:48 2000 @@ -125,7 +125,9 @@ %{shared: --shared} %{mdll:--dll} \ %{shared|mdll: -e \ %{mno-cygwin:_DllMainCRTStartup AT 12} \ - %{!mno-cygwin:__cygwin_dll_entry AT 12}}" + %{!mno-cygwin:__cygwin_dll_entry AT 12}} \ + %{static:-Bstatic} \ + %{!static:-Bdynamic}" #define SIZE_TYPE "unsigned int" diff -u gcc-2.95.2-orig/gcc/collect2.c gcc-2.96.2/gcc/collect2.c --- gcc-2.95.2-orig/gcc/collect2.c Sun May 14 22:44:18 2000 +++ gcc-2.95.2/gcc/collect2.c Sun May 14 22:40:57 2000 @@ -260,7 +260,7 @@ static struct path_prefix libpath_lib_dirs; /* directories in LIBPATH */ static struct path_prefix *libpaths[3] = {&cmdline_lib_dirs, &libpath_lib_dirs, NULL}; -static char *libexts[3] = {"a", "so", NULL}; /* possible library extentions */ +static char *libexts[4] = {"a", "so", "dll", NULL}; /* possible library extentions */ #endif void error PVPROTO((const char *, ...)) ATTRIBUTE_PRINTF_1; ----------------------------------snip---------------------- begin 664 gcc-2.95.2-cygwin.patch.gz M'XL(""$ZW$"M!8[C M->I>K0.NXSBZ:9JOZ79(T/;J[9R AT UP-2)1PB^M_#S`/EW5P1"RXJJ+7E*\CF\X&.27(>,?YCX4QD*N5[U M:J[B(27ZY#D\R),`:0/*I=@H^-;0S;?`D1[Q&@XI0\DBC_3SY*EP4E;B#0^7 M6#)T4,]I3&>,4Y AT DOT OP\"_]MX`,::9VS.\389EX8>'W5&DM!(NE94E)NE0D7E MB`L*B#9=\URZ.KBN5T?MVT>T?VD;BMYZ4MQM.DKQ/"C%\QO`(-:1A%4H%\%* MX.$?(&'WNR7&(&8BZX)=`4RP#4Y+,[P(&`W[XRO_,U3L8TR5/57VX_(7O(?' MLPC]@M=;4E>5:S2E[=EAURK36OST_Q]\TD_NN5;`LZ^("KGQ_,NS?^8-@/!G>^)^"6E?_!Z_4B-=] #!``` ` end -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com