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]

Re: Patch for g++


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@12} \
-                    %{!mno-cygwin:__cygwin_dll_entry@12}}"
+                    %{!mno-cygwin:__cygwin_dll_entry@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(""<J(CD``V=C8RUP871C:`"54_UOVC`0_3GY*ZZI5K4$)R'E,V@296,:
M$FT1I)OVI2A-#%@*#G+,5M3QO^],2%JA%;6*E#OGGM^=_5YB-IL!6<,\BHAK
M=1J62U+!YC:N[2CE,TS99;MI1YOY'\:MQ3/@BQB=$/)J0NTKC>$ZW$"M!8[C
M->I>K0.NXSBZ:9JOZ79(T/;J[9R@UP-2<QO5%I@J=*#7TT'3`.#=8[8(!8T]
M("3/MOAM&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@.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[=EAURK<W(U&VZY.]OP1.F['2!]D06B$1A6,+#4*-*A9
M5VF6L?N$JI.(4&P`=Z`[6,HS-;#Y7\+Z(:&!IGH3+YQ2CO90-OJ=LABH$*G0
MM/&7\>36OST_Q]\TD_NN5;`LZ^("KGQ_,NS?^8-@/!G>^)^"6E?_!Z_4B-=]
#!```
`
end

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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