This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: Porting libstdc++-v3 to cygwin


Thank you for doing this!  I thought I had tested this and everything
had worked.  Obviously I was completely deluded.

On Thu, Nov 23, 2000 at 05:26:20AM -0000, Billinghurst, David (CRTS) wrote:
>I have started to port libstdc++-v3 to cygwin.  I am not sure how far I will
>get, so here is a short status report.  There are a number of hacks in
search of better solutions.  Suggestions welcome.
>
>
>
>I have started with the config/os/newlib configuration files, and modified
>config.target to use them.
>
>===================================================================
>RCS file: /cvs/gcc/egcs/libstdc++-v3/configure.target,v
>retrieving revision 1.2
>diff -u -r1.2 configure.target
>--- configure.target    2000/11/17 20:35:06     1.2
>+++ configure.target    2000/11/23 05:01:53
>@@ -84,6 +84,9 @@
>   bsd* | freebsd*)
>     os_include_dir="config/os/bsd"
>     ;;
>+  cygwin*)
>+    os_include_dir="config/os/newlib"
>+    ;;
>   linux*)
>     os_include_dir="config/os/gnu-linux"
>     ;;
>
>
>
>Next, a configure test for <ctest> succeded for newlib and which resulted in
>the problem  
>
>linking /usr/local/src/gcc/libstdc++-v3/config/newlib/bits/ctype_base.h to
>include/bits/ctype_base.h
>configure: error:
>/usr/local/src/gcc/libstdc++-v3/config/newlib/bits/ctype_base.h: File not
>found
>
>Worked around this by
>===================================================================
>RCS file: /cvs/gcc/egcs/libstdc++-v3/configure,v
>retrieving revision 1.104
>diff -u -r1.104 configure
>--- configure   2000/11/21 20:53:35     1.104
>+++ configure   2000/11/23 05:09:54
>@@ -18064,7 +18064,7 @@
> rm -f conftest*
>     echo "$ac_t""$ctype_newlib" 1>&6
>     if test $ctype_newlib = "yes"; then
>-      ctype_include_dir="config/newlib"
>+      ctype_include_dir="config/os/newlib"
>       ctype_default=no
>     fi
>     fi

Shouldn't that be a change to acinclude.m4?  configure is a generated file.

>The file mkcheck required a couple of changes to run
> * put back libraries knocked out by -nodefaultlibs
> * add .exe to executable
>Don't know how to solve the first problem, but the second can be fixed in
>mkcheck.in
>
>--- mkcheck.orig        Thu Nov 23 13:30:33 2000
>+++ mkcheck.works       Thu Nov 23 15:17:17 2000
>@@ -122,7 +122,7 @@
>           $CXX $CXX_FLAG $INC_PATH   \
>           $LIB_PATH/../libsupc++/libsupc++.la  $LIB_PATH/libstdc++.la   \
>           -no-install"
>-  LIBS="-nodefaultlibs -lc -lgcc -lc"
>+  LIBS="-nodefaultlibs -lc -lgcc -lc -lcygwin -luser32 -lkernel32

Please drop the -lc for the cygwin case.  It should just be -lcygwin.
Having both causes problems for some older versions of ld.

Again, thanks for doing this.

cgf

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