(Answer) (Category) OpenLDAP Faq-O-Matic : (Category) OpenLDAP Developer's FAQ : (Category) Porting OpenLDAP : (Category) Porting to MinGW : (Answer) patches-gcc-specs.txt
At the time of this writing, the latest version of Cygwin is 1.3.6, which comes with GCC 2.95.3-5. The following is a patch for GCC's specs file to better support MinGW.
Index: ./specs
20c20
< %q/usr/lib/w32api/  %{mno-cygwin:%q/usr/lib/mingw/ %q/usr/local/lib/mingw/}  %{!mno-cygwin:%q/usr/lib/ %q/usr/local/lib/}  %{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@12}     %{!mno-cygwin:__cygwin_dll_entry@12}}  --dll-search-prefix=cyg
---
> %q/usr/lib/w32api/  %{mno-cygwin:%q/usr/lib/mingw/ %q/usr/local/lib/mingw/}  %{!mno-cygwin:%q/usr/lib/cygwin/ %q/usr/local/lib/}  %{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@12}     %{!mno-cygwin:__cygwin_dll_entry@12}}  %{!mno-cygwin:--dll-search-prefix=cyg}
[Append to This Answer]
Previous: (Answer) Building MinGW OpenLDAP in a Cygwin Environment
Next: (Answer) patches-gdbm.txt
This document is: http://www.openldap.org/faq/index.cgi?file=304
[Search] [Appearance]
This is a Faq-O-Matic 2.721.test.
© Copyright 1998-2013, OpenLDAP Foundation, info@OpenLDAP.org