1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/linuxthreads-2.3.3/glibc-linuxthreads-2.3.3-cygwin.patch Mon Jul 02 17:45:27 2007 +0000
1.3 @@ -0,0 +1,38 @@
1.4 +Fixes
1.5 +elf/librtld.os: In function `process_envvars': : undefined reference to `__access'
1.6 +...
1.7 +when building glibc-2.3.3 on cygwin
1.8 +
1.9 +Idea from
1.10 +http://sources.redhat.com/ml/bug-glibc/2002-01/msg00071/glibc-2.2-cygin-shared.patch
1.11 +Basically, make glibc use .oST as suffix for 'object static'
1.12 +instead of .oS, since cygwin has trouble distinguishing .os from .oS
1.13 +(Original patch had .on, but .oST is more mnemonic for 'object static')
1.14 +
1.15 +glibc-linuxthreads-2.3.3 also requires a patch, see
1.16 +../glibc-linuxthreads-2.3.3/glibc-linuxthreads-2.3.3-cygwin.patch
1.17 +
1.18 +[ rediffed against glibc-2.3.3 ]
1.19 +
1.20 +
1.21 +diff -aur glibc-linuxthreads-2.3.3/linuxthreads/Makefile glibc-linuxthreads-2.3.3-cygwin/linuxthreads/Makefile
1.22 +--- glibc-linuxthreads-2.3.3/linuxthreads/Makefile 2004-08-27 20:38:40.000000000 -0700
1.23 ++++ glibc-linuxthreads-2.3.3-cygwin/linuxthreads/Makefile 2003-10-02 11:48:48.000000000 -0700
1.24 +@@ -156,7 +156,7 @@
1.25 + install: $(inst_libdir)/libpthread.so
1.26 + $(inst_libdir)/libpthread.so: $(common-objpfx)format.lds \
1.27 + $(objpfx)libpthread.so$(libpthread.so-version) \
1.28 +- $(inst_libdir)/$(patsubst %,$(libtype.oS),\
1.29 ++ $(inst_libdir)/$(patsubst %,$(libtype.oST),\
1.30 + $(libprefix)pthread) \
1.31 + $(+force)
1.32 + (echo '/* GNU ld script';\
1.33 +@@ -164,7 +164,7 @@
1.34 + echo ' the static library, so try that secondarily. */';\
1.35 + cat $<; \
1.36 + echo 'GROUP ( $(slibdir)/libpthread.so$(libpthread.so-version)' \
1.37 +- '$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)pthread)'\
1.38 ++ '$(libdir)/$(patsubst %,$(libtype.oST),$(libprefix)pthread)'\
1.39 + ')' \
1.40 + ) > $@.new
1.41 + mv -f $@.new $@