patches/glibc/linuxthreads-20040827/glibc-linuxthreads-2.3.3-cygwin.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
     1 Fixes
     2 elf/librtld.os: In function `process_envvars': : undefined reference to `__access'
     3 ...
     4 when building glibc-2.3.3 on cygwin
     5 
     6 Idea from
     7 http://sources.redhat.com/ml/bug-glibc/2002-01/msg00071/glibc-2.2-cygin-shared.patch
     8 Basically, make glibc use .oST as suffix for 'object static'
     9 instead of .oS, since cygwin has trouble distinguishing .os from .oS
    10 (Original patch had .on, but .oST is more mnemonic for 'object static')
    11 
    12 glibc-linuxthreads-2.3.3 also requires a patch, see 
    13 ../glibc-linuxthreads-2.3.3/glibc-linuxthreads-2.3.3-cygwin.patch
    14 
    15 [ rediffed against glibc-2.3.3 ]
    16 
    17 
    18 diff -aur glibc-linuxthreads-2.3.3/linuxthreads/Makefile glibc-linuxthreads-2.3.3-cygwin/linuxthreads/Makefile
    19 --- glibc-linuxthreads-2.3.3/linuxthreads/Makefile	2004-08-27 20:38:40.000000000 -0700
    20 +++ glibc-linuxthreads-2.3.3-cygwin/linuxthreads/Makefile	2003-10-02 11:48:48.000000000 -0700
    21 @@ -156,7 +156,7 @@
    22  install: $(inst_libdir)/libpthread.so
    23  $(inst_libdir)/libpthread.so: $(common-objpfx)format.lds \
    24  			      $(objpfx)libpthread.so$(libpthread.so-version) \
    25 -			      $(inst_libdir)/$(patsubst %,$(libtype.oS),\
    26 +			      $(inst_libdir)/$(patsubst %,$(libtype.oST),\
    27  							$(libprefix)pthread) \
    28  			      $(+force)
    29  	(echo '/* GNU ld script';\
    30 @@ -164,7 +164,7 @@
    31  	 echo '   the static library, so try that secondarily.  */';\
    32  	 cat $<; \
    33  	 echo 'GROUP ( $(slibdir)/libpthread.so$(libpthread.so-version)' \
    34 -	      '$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)pthread)'\
    35 +	      '$(libdir)/$(patsubst %,$(libtype.oST),$(libprefix)pthread)'\
    36  	      ')' \
    37  	) > $@.new
    38  	mv -f $@.new $@