patches/glibc/linuxthreads-2.3.6/100-cygwin.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Aug 02 18:28:10 2011 +0200 (2011-08-02)
changeset 2590 b64cfb67944e
parent 402 197e1b49586e
permissions -rw-r--r--
scripts/functions: svn retrieval first tries the mirror for tarballs

The svn download helper looks for the local tarballs dir to see if it
can find a pre-downloaded tarball, and if it does not find it, does
the actual fetch to upstream via svn.

In the process, it does not even try to get a tarball from the local
mirror, which can be useful if the mirror has been pre-populated
manually (or with a previously downloaded tree).

Fake a tarball get with the standard tarball-download helper, but
without specifying any upstream URL, which makes the helper directly
try the LAN mirror.

Of course, if no mirror is specified, no URL wil be available, and
the standard svn retrieval will kick in.

Reported-by: ANDY KENNEDY <ANDY.KENNEDY@adtran.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@402
     1
Fixes
yann@402
     2
elf/librtld.os: In function `process_envvars': : undefined reference to `__access'
yann@402
     3
...
yann@402
     4
when building glibc-2.3.3 on cygwin
yann@402
     5
yann@402
     6
Idea from
yann@402
     7
http://sources.redhat.com/ml/bug-glibc/2002-01/msg00071/glibc-2.2-cygin-shared.patch
yann@402
     8
Basically, make glibc use .oST as suffix for 'object static'
yann@402
     9
instead of .oS, since cygwin has trouble distinguishing .os from .oS
yann@402
    10
(Original patch had .on, but .oST is more mnemonic for 'object static')
yann@402
    11
yann@402
    12
glibc-linuxthreads-2.3.3 also requires a patch, see 
yann@402
    13
../glibc-linuxthreads-2.3.3/glibc-linuxthreads-2.3.3-cygwin.patch
yann@402
    14
yann@402
    15
[ rediffed against glibc-2.3.5 ]
yann@402
    16
yann@402
    17
diff -aur glibc-2.3.5/linuxthreads/Makefile glibc-2.3.5-cygwin/linuxthreads/Makefile
yann@402
    18
--- glibc-2.3.5/linuxthreads/Makefile	2005-02-16 12:26:38.000000000 +0100
yann@402
    19
+++ glibc-2.3.5-cygwin/linuxthreads/Makefile	2005-05-11 08:32:50.453125000 +0200
yann@402
    20
@@ -159,7 +159,7 @@
yann@402
    21
 install: $(inst_libdir)/libpthread.so
yann@402
    22
 $(inst_libdir)/libpthread.so: $(common-objpfx)format.lds \
yann@402
    23
 			      $(objpfx)libpthread.so$(libpthread.so-version) \
yann@402
    24
-			      $(inst_libdir)/$(patsubst %,$(libtype.oS),\
yann@402
    25
+			      $(inst_libdir)/$(patsubst %,$(libtype.oST),\
yann@402
    26
 							$(libprefix)pthread) \
yann@402
    27
 			      $(+force)
yann@402
    28
 	(echo '/* GNU ld script';\
yann@402
    29
@@ -167,7 +167,7 @@
yann@402
    30
 	 echo '   the static library, so try that secondarily.  */';\
yann@402
    31
 	 cat $<; \
yann@402
    32
 	 echo 'GROUP ( $(slibdir)/libpthread.so$(libpthread.so-version)' \
yann@402
    33
-	      '$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)pthread)'\
yann@402
    34
+	      '$(libdir)/$(patsubst %,$(libtype.oST),$(libprefix)pthread)'\
yann@402
    35
 	      ')' \
yann@402
    36
 	) > $@.new
yann@402
    37
 	mv -f $@.new $@