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 Date: Fri, 16 Jun 2000 12:23:33 +0200 (MESZ) From: Sergey Grigoriev To: cygwin AT sourceware DOT cygnus DOT com Subject: Re:New gcc/binutils available for testing (TRY 2) -- fixes Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi Chris! It works not yet right. The problem is: it uses librarys which are builded to use crtdll.dll as c-runtime. By this way it will be not correct to define __MSVCRT__ on compile time and link it with msvcrt.dll (and executable is linked with both crtdll.dll and msvcrt.dll - sometime it can be working but somtime not (My project is not working by this way)) crt0,dllcrt0,gcrt0 -> CYGWIN1.DLL linkage crt1,dllcrt1,gcrt1 -> CRTDLL.DLL linkage (gcrt1.o is not included in Cygwin-distribution, but can be obtained from MinGW-crtdll package) crt2,dllcrt2,gcrt2 -> MSVCRT.DLL linkage (MinGW-MSVCRT-package) I "downgraded" spec-file to use only crtdll.dll and it work like B20.1 (no MSVCRT) . It is attached. Patch from Dale Goudey: > http://sourceware.cygnus.com/ml/cygwin/2000-06/msg00632.html "How to add MSVCRT-support to Gygnus GCC" is a little of- topic: to bring support for MSVCRT by this way will be NESSECARY to put near the whole MinGW-MSVCRT-distribution into Cygnus-tree und there is a lot of doubled headers. And modifing only "specs"-File cant work. In GIMP for Win32 (sorry I have no URL) there is a document (I think it is assembled from some Mumith-postings) how to (was need to be recompiled with -D__MSVCRT__ ) build MSVCRT-support into GYGNUS natively (i.e. on place of CRTDLL-support). GDB is working now with CYGWIN-1.1.2. Thank you Chris. Serge ************* Cut Here ************* *asm: *asm_final: *cpp: -remap %(cpp_cpu) %{posix:-D_POSIX_SOURCE} %{!mno-cygwin:-D__CYGWIN32__ -D__CYGWIN__ -Dunix} %{!mno-win32:-D_WIN32 -DWINNT} %{mno-cygwin:-DWIN32 -D__WIN32__ -D__MINGW32__=0.2 %{mthreads:-D_MT} -iwithprefixbefore ../../../../include/mingw32 } *cc1: %(cc1_spec) *cc1plus: *endfile: *link: %{mwindows:--subsystem windows} %{mconsole:--subsystem console} %{shared: %{mdll: %eshared and mdll are not compatible}} %{shared: --shared} %{mdll:--dll} %{static:-Bstatic} %{!static:-Bdynamic} %{shared|mdll: -e %{mno-cygwin:_DllMainCRTStartup AT 12} %{!mno-cygwin:__cygwin_dll_entry AT 12}} *lib: %{pg:-lgmon} %{!mno-cygwin:-lcygwin} %{mno-cygwin:%{mthreads:-lmingwthrd} -lmingw32 -lmoldname -lcrtdll} %{mwindows:-lgdi32 -lcomdlg32} -luser32 -lkernel32 -ladvapi32 -lshell32 *libgcc: %{mno-cygwin: %{mthreads:-lmingwthrd} -lmingw32} -lgcc %{mno-cygwin: -lmoldname -lcrtdll} *startfile: %{shared|mdll: %{mno-cygwin:dllcrt1%O%s}} %{!shared: %{!mdll: %{!mno-cygwin:crt0%O%s} %{mno-cygwin:crt1%O%s} %{pg:gcrt0%O%s}}} *switches_need_spaces: *signed_char: %{funsigned-char:-D__CHAR_UNSIGNED__} *predefines: -Di386 -D_X86=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -Asystem(winnt) -Acpu(i386) -Amachine(i386) *cross_compile: 0 *version: 2.95.2 *multilib: . ; *multilib_defaults: *multilib_extra: *multilib_matches: *linker: collect2 *cpp_486: %{!ansi:-Di486} -D__i486 -D__i486__ *cpp_586: %{!ansi:-Di586 -Dpentium} -D__i586 -D__i586__ -D__pentium -D__pentium__ *cpp_k6: %{!ansi:-Di586 -Dk6} -D__i586 -D__i586__ -D__k6 -D__k6__ *cpp_686: %{!ansi:-Di686 -Dpentiumpro} -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ *cpp_cpu_default: %(cpp_686) *cpp_cpu: -Acpu(i386) -Amachine(i386) %{!ansi:-Di386} -D__i386 -D__i386__ %{mcpu=i486:%(cpp_486)} %{m486:%(cpp_486)} %{mpentium:%(cpp_586)} %{mcpu=pentium:%(cpp_586)} %{mpentiumpro:%(cpp_686)} %{mcpu=pentiumpro:%(cpp_686)} %{mcpu=k6:%(cpp_k6)} %{!mcpu*:%{!m486:%{!mpentium*:%(cpp_cpu_default)}}} *cc1_cpu: %{!mcpu*: %{m386:-mcpu=i386 -march=i386} %{m486:-mcpu=i486 -march=i486} %{mpentium:-mcpu=pentium} %{mpentiumpro:-mcpu=pentiumpro}} *mingw_include_path: i686-pc-cygwin *link_command: %{!fsyntax-only: %{!c:%{!M:%{!MM:%{!E:%{!S:%(linker) %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}} %{static:} %{L*} %D %o %{!nostdlib:%{!nodefaultlibs:%G %L %G}} %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}} -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com